github.com/binbinly/pkg@v0.0.11-0.20240321014439-f4fbf666eb0f/transport/transport.go (about) 1 package transport 2 3 import ( 4 "context" 5 "net/url" 6 ) 7 8 // Server is transport server interface. 9 type Server interface { 10 Start(ctx context.Context) error 11 Stop(ctx context.Context) error 12 } 13 14 // Endpoint is registry endpoint. 15 type Endpoint interface { 16 Endpoint() (*url.URL, error) 17 }