Documentation ¶ Index ¶ func GetConsumedCorrelationID(ctx context.Context) string func NewBinding(svc Service) *serverBinding func SetCorrelationID(ctx context.Context, v string) context.Context type Service func NewClient(cc *grpc.ClientConn) Service func NewService() Service type TestRequest type TestResponse Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetConsumedCorrelationID ¶ func GetConsumedCorrelationID(ctx context.Context) string GetConsumedCorrelationID func NewBinding ¶ func NewBinding(svc Service) *serverBinding NewBinding bind svc func SetCorrelationID ¶ func SetCorrelationID(ctx context.Context, v string) context.Context CorrelationID context handlers SetCorrelationID Types ¶ type Service ¶ type Service interface { Test(ctx context.Context, a string, b int64) (context.Context, string, error) } Service func NewClient ¶ func NewClient(cc *grpc.ClientConn) Service NewClient new client func NewService ¶ func NewService() Service NewService create service entity type TestRequest ¶ type TestRequest struct { A string B int64 } TestRequest request type TestResponse ¶ type TestResponse struct { Ctx context.Context V string } TestResponse response Source Files ¶ View all Source files client.go context_metadata.go request_response.go server.go service.go Directories ¶ Show internal Expand all Path Synopsis cmd client pb Click to show internal directories. Click to hide internal directories.