config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLConfig

type MySQLConfig struct {
	Host     string `json:"host"`
	Port     uint16 `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
}

func (MySQLConfig) DSN

func (conf MySQLConfig) DSN() string

func (MySQLConfig) Validate

func (conf MySQLConfig) Validate() error

type ServerConfig

type ServerConfig struct {
	Port  uint16      `json:"port"`
	MySQL MySQLConfig `json:"mysql"`
}

func (ServerConfig) Address

func (conf ServerConfig) Address() string

func (ServerConfig) Validate

func (conf ServerConfig) Validate() error

Jump to

Keyboard shortcuts

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