server

package
v1.300050.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TypeStr, _ = component.NewType("server")
)

Functions

func NewFactory

func NewFactory() extension.Factory

Types

type Config

type Config struct {
	ListenAddress string `mapstructure:"listen_addr"`
	TLSCAPath     string `mapstructure:"tls_ca_path, omitempty"`
	TLSCertPath   string `mapstructure:"tls_cert_path, omitempty"`
	TLSKeyPath    string `mapstructure:"tls_key_path, omitempty"`
}

type Server

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

func NewServer

func NewServer(logger *zap.Logger, config *Config) *Server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

Jump to

Keyboard shortcuts

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