server

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryPoint

type EntryPoint struct {
	Address string `cfg:"address"`
	Network string `cfg:"network"`
}

func (*EntryPoint) Serve

func (e *EntryPoint) Serve(ctx context.Context, name string) error

type Server

type Server struct {
	LoadValue   string                `cfg:"load_value"`
	EntryPoints map[string]EntryPoint `cfg:"entrypoints"`
	HTTP        http.HTTP             `cfg:"http"`
	TCP         tcp.TCP               `cfg:"tcp"`
}

func (*Server) Run

func (s *Server) Run(ctx context.Context, wg *sync.WaitGroup) error

Jump to

Keyboard shortcuts

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