server

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 21 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(s *Server)

func ListenAddress

func ListenAddress(address string) Option

func MutualTLS

func MutualTLS(serverCertificate tls.Certificate, clientCA *x509.CertPool) Option

type Server

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

func NewServer

func NewServer(version string, backend base.EventStream, opts ...Option) *Server

func (*Server) GracefulStop

func (s *Server) GracefulStop()

func (*Server) HandleConn

func (s *Server) HandleConn(ctx context.Context, st stats.ConnStats)

func (*Server) HandleRPC

func (s *Server) HandleRPC(ctx context.Context, st stats.RPCStats)

func (*Server) Start

func (s *Server) Start() error

func (*Server) TagConn

func (s *Server) TagConn(ctx context.Context, i *stats.ConnTagInfo) context.Context

func (*Server) TagRPC

func (s *Server) TagRPC(ctx context.Context, i *stats.RPCTagInfo) context.Context

Jump to

Keyboard shortcuts

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