...

Package test

import "github.com/go-kit/kit/transport/grpc/_grpc_test"
Overview
Index

Overview ▾

func GetConsumedCorrelationID

func GetConsumedCorrelationID(ctx context.Context) string

func NewBinding

func NewBinding(svc Service) *serverBinding

func SetCorrelationID

func SetCorrelationID(ctx context.Context, v string) context.Context

type Service

type Service interface {
    Test(ctx context.Context, a string, b int64) (context.Context, string, error)
}

func NewClient

func NewClient(cc *grpc.ClientConn) Service

func NewService

func NewService() Service

type TestRequest

type TestRequest struct {
    A string
    B int64
}

type TestResponse

type TestResponse struct {
    Ctx context.Context
    V   string
}