grpc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aborted added in v1.1.0

func Aborted(message ...string) *status.Status

func AlreadyExists added in v1.1.0

func AlreadyExists(message ...string) *status.Status

func DataLoss added in v1.1.0

func DataLoss(message ...string) *status.Status

func ErrorInterceptor added in v1.1.0

func ErrorInterceptor() grpc.UnaryServerInterceptor

func FailedPrecondition added in v1.1.0

func FailedPrecondition(message ...string) *status.Status

func Internal added in v1.1.0

func Internal(message ...string) *status.Status

func InvalidArgument added in v1.1.0

func InvalidArgument(message ...string) *status.Status

func LoggerInterceptor

func LoggerInterceptor(logger logger.Logger) grpc.UnaryServerInterceptor

func NotFound added in v1.1.0

func NotFound(message ...string) *status.Status

func OutOfRange added in v1.1.0

func OutOfRange(message ...string) *status.Status

func PermissionDenied added in v1.1.0

func PermissionDenied(message ...string) *status.Status

func ValidateInterceptor added in v1.1.0

func ValidateInterceptor() grpc.UnaryServerInterceptor

Types

type Server

type Server struct {
	RPCServer *grpc.Server
	// contains filtered or unexported fields
}

func NewServer added in v1.2.0

func NewServer(config *server.Config, logger logger.Logger) *Server

func (*Server) Start

func (s *Server) Start(_ context.Context) error

func (*Server) Stop

func (s *Server) Stop(_ context.Context) error

func (*Server) WithDefaultInterceptors added in v1.2.0

func (s *Server) WithDefaultInterceptors() *Server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳