Documentation ¶ Index ¶ type Handler type Option func TLS(tlsCertPath string, tlsKeyPath string) Option func Verbose(verbose bool) Option type Server func NewServer(addrPort string, handler Handler, opts ...Option) (*Server, error) func (s *Server) Start() error func (s *Server) Stop() 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() Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.