grpc

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConn

type ClientConn = grpc.ClientConn

func Dial

func Dial(target string, opts ...DialOption) (*ClientConn, error)

func NewMock

func NewMock(s *Server) (*ClientConn, func(m interface{ Run() int }))

type DialOption

type DialOption = grpc.DialOption

type MD

type MD = metadata.MD

func GetMD

func GetMD(ctx context.Context) MD

type Option

type Option = optionutil.I[Server]

func WithReflection

func WithReflection(t bool) Option

func WithServerOptions

func WithServerOptions(opts ...grpc.ServerOption) Option

func WithStreamInterceptor

func WithStreamInterceptor(ints ...grpc.StreamServerInterceptor) Option

func WithUnaryInterceptor

func WithUnaryInterceptor(ints ...grpc.UnaryServerInterceptor) Option

type Server

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

func NewServer

func NewServer(options ...Option) *Server

func (*Server) RegisterServer

func (s *Server) RegisterServer(fn, svc any)

func (*Server) Start

func (s *Server) Start(ln net.Listener) error

func (*Server) Stop

func (s *Server) Stop(timeout time.Duration)

Directories

Path Synopsis
internal
middlewares

Jump to

Keyboard shortcuts

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