rpc

package
v0.0.0-...-749ffa6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteText

type ByteText string

func (ByteText) Value

func (b ByteText) Value() int

type Config

type Config struct {
	basic.Config
	Timeout        string
	MaxRecvMsgSize ByteText
	MaxSendMsgSize ByteText
	Logger         LoggerConfig
}

type LoggerConfig

type LoggerConfig struct {
	Enable bool
}

type Server

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

func New

func New(c Config) *Server

func (*Server) Router

func (s *Server) Router(router func(server *grpc.Server))

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) WithGRPCOption

func (s *Server) WithGRPCOption(options ...grpc.ServerOption)

func (*Server) WithRegistry

func (s *Server) WithRegistry(r registry.Registry)

func (*Server) WithStatsHandler

func (s *Server) WithStatsHandler(handlers ...stats.Handler)

func (*Server) WithStreamServerInterceptor

func (s *Server) WithStreamServerInterceptor(interceptors ...grpc.StreamServerInterceptor)

func (*Server) WithUnaryServerInterceptor

func (s *Server) WithUnaryServerInterceptor(interceptors ...grpc.UnaryServerInterceptor)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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