grpc_server

package
v0.0.0-...-608e6a2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

func Config

func Config(c *trellis.GrpcServerConfig) Option

func Router

func Router(r router.Router) Option

func ServerName

func ServerName(name string) Option

func Tracing

func Tracing(fs ...bool) Option

type Server

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

func NewServer

func NewServer(opts ...Option) (*Server, error)

func (*Server) Call

func (p *Server) Call(ctx context.Context, msg *message.Request) (*message.Response, error)

func (*Server) Start

func (p *Server) Start() error

func (*Server) Stop

func (p *Server) Stop() error

Jump to

Keyboard shortcuts

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