Documentation ¶
Index ¶
Constants ¶
View Source
const ( //SupportPackageIsVersion1 = true 不兼容 //SupportPackageIsVersion2 = true 不兼容 SupportPackageIsVersion3 = true )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Invoke(ctx context.Context, method Method, in interface{}, out interface{}) error NewStream(ctx context.Context, method StreamMethod) (ClientStream, error) }
type ClientStream ¶
type NameService ¶
type Server ¶
type Server interface { RegisterUnaryEndpoint(method Method, handle UnaryEndpoint) RegisterStreamEndpoint(method StreamMethod, handle StreamEndpoint) }
type ServiceStream ¶
type StreamEndpoint ¶
type StreamEndpoint func(ctx context.Context, stream ServiceStream) error
type StreamMethod ¶
type UnaryEndpoint ¶
Click to show internal directories.
Click to hide internal directories.