Documentation ¶
Index ¶
- func MakeEndpointOfSayHello(s Service) endpoint.Endpoint
- func NewGRPCServer(svc Service, codecs grpccodec.Codecs) pb.ServiceServer
- func ValidateSayHelloRequest(newSchema func(*SayHelloRequest) validating.Schema) httpoption.Validator
- type Greeter
- type SayHelloRequest
- type SayHelloResponse
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeEndpointOfSayHello ¶
MakeEndpointOfSayHello creates the endpoint for s.SayHello.
func NewGRPCServer ¶
func NewGRPCServer(svc Service, codecs grpccodec.Codecs) pb.ServiceServer
func ValidateSayHelloRequest ¶
func ValidateSayHelloRequest(newSchema func(*SayHelloRequest) validating.Schema) httpoption.Validator
ValidateSayHelloRequest creates a validator for SayHelloRequest.
Types ¶
type SayHelloRequest ¶
type SayHelloRequest struct {
Name string `json:"name"`
}
type SayHelloResponse ¶
func (*SayHelloResponse) Body ¶
func (r *SayHelloResponse) Body() interface{}
func (*SayHelloResponse) Failed ¶
func (r *SayHelloResponse) Failed() error
Failed implements endpoint.Failer.
Click to show internal directories.
Click to hide internal directories.