net

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnableToConnect = errors.New("unable to connect")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Server ServerConfig `yaml:"server"`
	Stream StreamConfig `yaml:"stream"`
}

type ConfigGetter

type ConfigGetter interface {
	GetNet() Config
}

type ServerConfig

type ServerConfig struct {
	ListenAddrs []string `yaml:"listenAddrs"`
}

type StreamConfig

type StreamConfig struct {
	TimeoutMilliseconds int `yaml:"timeoutMilliseconds"`
	MaxMsgSizeMb        int `yaml:"maxMsgSizeMb"`
}

Jump to

Keyboard shortcuts

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