Documentation ¶
Overview ¶
Package service provides service definition.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMethodBidirectionalStream ¶
IsMethodBidirectionalStream checks whether the method is client-and-server-stream.
func IsMethodClientStream ¶
IsMethodClientStream checks whether the method is client-stream.
func IsMethodServerStream ¶
IsMethodServerStream checks whether the method is server-stream.
func IsMethodUnary ¶
IsMethodUnary checks whether the method is unary.
Types ¶
type Method ¶
type Method struct { ServiceName string MethodName string MethodType Type Input interface{} Output interface{} }
Method contains description of a grpc service.
type Type ¶
type Type string
Type is service method type.
const ( // TypeUnary indicates that the method is unary. TypeUnary Type = "Unary" // TypeClientStream indicates that the method is client-stream. TypeClientStream Type = "ClientStream" // TypeServerStream indicates that the method is server-stream. TypeServerStream Type = "ServerStream" // TypeBidirectionalStream indicates that the method is bidirectional-stream. TypeBidirectionalStream Type = "BidirectionalStream" )
Click to show internal directories.
Click to hide internal directories.