Documentation ¶
Index ¶
- func Generate(dir, serviceName string, descriptor grpcurl.DescriptorSource) error
- func GenerateAll(dir string, svcs Services) error
- func RunCase(conn *grpc.ClientConn, svcs Services, testcase Case, comp CompareFunc) error
- func ShowMethod(descriptor grpcurl.DescriptorSource, method string) (string, error)
- type Case
- type CaseSlice
- type CompareFunc
- type InvokeCb
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAll ¶
func RunCase ¶
func RunCase(conn *grpc.ClientConn, svcs Services, testcase Case, comp CompareFunc) error
func ShowMethod ¶
func ShowMethod(descriptor grpcurl.DescriptorSource, method string) (string, error)
Types ¶
type Case ¶
type Case struct { Name string `json:"name"` Service string `json:"service"` Method string `json:"method"` Headers []string `json:"headers"` ErrorCode codes.Code `json:"error_code"` Error string `json:"error"` Request interface{} `json:"request"` Response interface{} `json:"response"` }
func LoadTestcase ¶
func (Case) GetRequest ¶
func (Case) GetResponse ¶
func (Case) GetServeceName ¶
type Services ¶
type Services map[string]grpcurl.DescriptorSource
Click to show internal directories.
Click to hide internal directories.