micro-tests/client/http/proto/github_micro.pb.go
Vasiliy Tolstov d3a0375892 client/http: add additional tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-30 18:34:14 +03:00

37 lines
1.0 KiB
Go

// Code generated by protoc-gen-micro
// source: github.proto
package pb
import (
context "context"
api "github.com/unistack-org/micro/v3/api"
client "github.com/unistack-org/micro/v3/client"
)
func NewGithubEndpoints() []*api.Endpoint {
return []*api.Endpoint{
&api.Endpoint{
Name: "Github.LookupUser",
Path: []string{"/users/{username}"},
Method: []string{"GET"},
Handler: "rpc",
},
&api.Endpoint{
Name: "Github.LookupUserWithoutPath",
Path: []string{"/{username}"},
Method: []string{"GET"},
Handler: "rpc",
},
}
}
type GithubClient interface {
LookupUser(ctx context.Context, req *LookupUserReq, opts ...client.CallOption) (*LookupUserRsp, error)
LookupUserWithoutPath(ctx context.Context, req *LookupUserReq, opts ...client.CallOption) (*LookupUserRsp, error)
}
type GithubServer interface {
LookupUser(ctx context.Context, req *LookupUserReq, rsp *LookupUserRsp) error
LookupUserWithoutPath(ctx context.Context, req *LookupUserReq, rsp *LookupUserRsp) error
}