simplegrpc

package
v0.92.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL