@@ -30,6 +30,13 @@ type TestDoubleServer interface {
|
||||
|
||||
func NewTestEndpoints() []*api.Endpoint {
|
||||
return []*api.Endpoint{
|
||||
&api.Endpoint{
|
||||
Name: "Test.CallRepeated",
|
||||
Path: []string{"/v1/test/call_repeated/{ids}"},
|
||||
Method: []string{"POST"},
|
||||
Body: "*",
|
||||
Handler: "rpc",
|
||||
},
|
||||
&api.Endpoint{
|
||||
Name: "Test.Call",
|
||||
Path: []string{"/v1/test/call/{name}"},
|
||||
@@ -48,11 +55,13 @@ func NewTestEndpoints() []*api.Endpoint {
|
||||
}
|
||||
|
||||
type TestClient interface {
|
||||
CallRepeated(ctx context.Context, req *CallReq, opts ...client.CallOption) (*CallRsp, error)
|
||||
Call(ctx context.Context, req *CallReq, opts ...client.CallOption) (*CallRsp, error)
|
||||
CallError(ctx context.Context, req *CallReq1, opts ...client.CallOption) (*CallRsp1, error)
|
||||
}
|
||||
|
||||
type TestServer interface {
|
||||
CallRepeated(ctx context.Context, req *CallReq, rsp *CallRsp) error
|
||||
Call(ctx context.Context, req *CallReq, rsp *CallRsp) error
|
||||
CallError(ctx context.Context, req *CallReq1, rsp *CallRsp1) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user