Documentation ¶
Overview ¶
Code generated by sysl DO NOT EDIT.
Code generated by sysl DO NOT EDIT.
Code generated by sysl DO NOT EDIT.
Index ¶
- func BuildGrpcHandlerInitialiser(serviceInterface GrpcServiceInterface, callback core.GrpcGenCallback, ...) handlerinitialiser.GrpcHandlerInitialiser
- func NewDefaultConfig() config.DefaultConfig
- type DownstreamClients
- type DownstreamConfig
- type GetStuffClient
- type GrpcServiceHandler
- type GrpcServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGrpcHandlerInitialiser ¶ added in v0.19.0
func BuildGrpcHandlerInitialiser(serviceInterface GrpcServiceInterface, callback core.GrpcGenCallback, downstream *DownstreamClients) handlerinitialiser.GrpcHandlerInitialiser
BuildGrpcHandlerInitialiser ...
func NewDefaultConfig ¶ added in v0.22.0
func NewDefaultConfig() config.DefaultConfig
NewDefaultConfig ...
Types ¶
type DownstreamClients ¶ added in v0.19.0
type DownstreamClients struct {
// contains filtered or unexported fields
}
DownstreamClients for SimpleGrpc
func BuildDownstreamClients ¶ added in v0.19.0
func BuildDownstreamClients(cfg *config.DefaultConfig) (*DownstreamClients, error)
BuildDownstreamClients ...
type DownstreamConfig ¶ added in v0.19.0
type DownstreamConfig struct { ContextTimeout time.Duration `yaml:"contextTimeout"` Simple config.CommonDownstreamData `yaml:"simple"` }
DownstreamConfig for SimpleGrpc
type GetStuffClient ¶
type GetStuffClient struct {
PostStuff func(ctx context.Context, req *simple.PostStuffRequest) (*simple.Str, error)
}
GetStuff Client
type GrpcServiceHandler ¶
type GrpcServiceHandler struct {
// contains filtered or unexported fields
}
GrpcServiceHandler for SimpleGrpc API
func NewGrpcServiceHandler ¶
func NewGrpcServiceHandler(genCallback core.GrpcGenCallback, serviceInterface *GrpcServiceInterface, simpleSimpleService simple.Service) *GrpcServiceHandler
NewGrpcServiceHandler for SimpleGrpc
func (*GrpcServiceHandler) GetStuff ¶
func (s *GrpcServiceHandler) GetStuff(ctx context.Context, req *pb.GetStuffRequest) (*pb.GetStuffResponse, error)
GetStuff ...
func (*GrpcServiceHandler) RegisterServer ¶
func (s *GrpcServiceHandler) RegisterServer(ctx context.Context, server *grpc.Server)
RegisterServer registers the SimpleGrpc gRPC service
type GrpcServiceInterface ¶
type GrpcServiceInterface struct {
GetStuff func(ctx context.Context, req *pb.GetStuffRequest, client GetStuffClient) (*pb.GetStuffResponse, error)
}
GrpcServiceInterface for SimpleGrpc
Click to show internal directories.
Click to hide internal directories.