server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Start() error
	Stop()
	Register(*grpc.Server)
}

type Option

type Option func(*options)

func TLS

func TLS(tlsCertPath string, tlsKeyPath string) Option

func Verbose

func Verbose(verbose bool) Option

type Server

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

func NewServer

func NewServer(addrPort string, handler Handler, opts ...Option) (*Server, error)

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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