Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Dial variable Dial = grpc.Dial )
Functions ¶
func CreateServer ¶ added in v0.0.5
Types ¶
type IClientConn ¶
type IClientConn interface { WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool GetState() connectivity.State Target() string GetMethodConfig(method string) grpc.MethodConfig ResetConnectBackoff() Close() error NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error) Invoke(ctx context.Context, method string, args, reply interface{}, opts ...grpc.CallOption) error }
IClientConn interface
func CreateClient ¶
func CreateClient(domain string, option config.GRPC) (IClientConn, error)
CreateClient method
type IService ¶
type IService interface { GetSession() (IClientConn, error) Close() error }
IService interface
Click to show internal directories.
Click to hide internal directories.