server

package
v3.9.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.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 Config

type Config struct {
	Address    string
	CertFile   string
	KeyFile    string
	TLSEnabled bool
}

type Server

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

func New

func New(
	c *Config,
	cmdFactory command.Factory,
	logger *zap.Logger,
) (_ *Server, err error)

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Shutdown

func (s *Server) Shutdown()

Jump to

Keyboard shortcuts

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