Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver interface {
// GetName return the name of the driver
GetName() string
// RegisterGrpcResolver register the grpc resolver to handle custom scheme
RegisterGrpcResolver()
// RegisterGrpcService register dtm endpoint to target
RegisterGrpcService(target string, endpoint string) error
// ParseServerMethod parse the uri to server and method.
// server will be passed to grpc.Dial, and method to grpc.ClientConn.invoke
ParseServerMethod(uri string) (server string, method string, err error)
}
Driver interface to do service register and discover
Click to show internal directories.
Click to hide internal directories.