grpcserver

package
v0.0.0-...-e4f960d Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func New

func New(grpcPort uint32) *Application

func (*Application) Close

func (a *Application) Close()

func (*Application) InitGRPCUnaryInterceptors

func (a *Application) InitGRPCUnaryInterceptors(secret string) grpc.ServerOption

GRPCUnaryInterceptors sets up unary GRPC interceptors

func (*Application) Run

func (a *Application) Run(ctx context.Context, services ...IService)

func (*Application) WithUnaryMW

func (a *Application) WithUnaryMW(unary grpc.UnaryServerInterceptor)

type IService

type IService interface {
	Register(srv grpc.ServiceRegistrar)
}

Jump to

Keyboard shortcuts

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