grpc

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(conf vcs.Configurator, trans *config.Transformer, cfg *redis.Config, cache *cache.Cache) v1.ConfiguratorServiceServer

NewServer for gRPC.

func Register

func Register(lc fx.Lifecycle, params RegisterParams)

Register server.

Types

type RegisterParams

type RegisterParams struct {
	fx.In

	GRPCServer   *grpc.Server
	HTTPServer   *shttp.Server
	GRPCConfig   *sgrpc.Config
	RedisConfig  *redis.Config
	Logger       *zap.Logger
	Configurator vcs.Configurator
	Transformer  *config.Transformer
	Cache        *cache.Cache
}

RegisterParams for gRPC.

type Server

type Server struct {
	v1.UnimplementedConfiguratorServiceServer
	// contains filtered or unexported fields
}

Server for gRPC.

func (*Server) GetConfig

func (s *Server) GetConfig(ctx context.Context, req *v1.GetConfigRequest) (*v1.GetConfigResponse, error)

GetConfig for gRPC.

Directories

Path Synopsis
cache

Jump to

Keyboard shortcuts

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