grpc

package
v1.285.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.170.0

type Config struct {
	Address string
}

Config for HTTP.

type Server

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

Server for gRPC.

func NewServer

func NewServer(server *grpc.Server, cfg *Config) (*Server, error)

NewServer for gRPC.

func (*Server) IsEnabled added in v1.166.2

func (s *Server) IsEnabled() bool

IsEnabled for server.

func (*Server) Serve

func (s *Server) Serve() error

Serve the underlying server.

func (*Server) Shutdown

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

Shutdown the underlying server.

func (*Server) String added in v1.165.0

func (s *Server) String() string

String for server.

Jump to

Keyboard shortcuts

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