Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v1.300073.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 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