grpc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Unlicense Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(config *sv1.Config) v1.ServiceServer

NewServer for gRPC.

func Register

func Register(params RegisterParams) error

Register server.

Types

type RegisterParams

type RegisterParams struct {
	fx.In

	Lifecycle       fx.Lifecycle
	GRPCServer      *grpc.Server
	HTTPServer      *http.Server
	GRPCConfig      *grpc.Config
	TransportConfig *transport.Config
	Logger          *zap.Logger
	Tracer          opentracing.Tracer
	Metrics         *prometheus.ClientMetrics
	V1Config        *sv1.Config
}

RegisterParams for gRPC.

type Server

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

Server for gRPC.

func (*Server) GenerateAccessToken added in v1.5.0

GenerateAccessToken for gRPC.

func (*Server) GenerateKey added in v1.4.0

func (s *Server) GenerateKey(ctx context.Context, req *v1.GenerateKeyRequest) (*v1.GenerateKeyResponse, error)

GenerateKey for gRPC.

func (*Server) GeneratePassword

func (s *Server) GeneratePassword(ctx context.Context, req *v1.GeneratePasswordRequest) (*v1.GeneratePasswordResponse, error)

GeneratePassword for gRPC.

Jump to

Keyboard shortcuts

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