config

package
v0.0.0-...-49d2269 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultPort = 4400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiVersion string `json:"api_version"`
	ApiPort    int    `json:"api_port"`
}

func NewConfig

func NewConfig(options ...ConfigOptFn) Config

type ConfigOptFn

type ConfigOptFn func(cfg *Config)

func WithApiVersion

func WithApiVersion(version string) ConfigOptFn

Jump to

Keyboard shortcuts

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