server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: GPL-2.0, GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GuardContextKey = "guard"
	RedisContextKey = "redis"
)

Variables

This section is empty.

Functions

func WithGuard added in v0.0.4

func WithGuard() grpc.UnaryServerInterceptor

func WithRedis added in v0.0.4

func WithRedis() grpc.UnaryServerInterceptor

Types

type GRPCService added in v0.0.4

type GRPCService func(*grpc.Server)

type Server

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

func New

func New(
	port int,
	unary []grpc.UnaryServerInterceptor,
	stream []grpc.StreamServerInterceptor,
) *Server

func (*Server) Run

func (s *Server) Run()

func (*Server) WithServices

func (s *Server) WithServices(services ...GRPCService) *Server

Jump to

Keyboard shortcuts

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