server

package
v0.0.0-...-ff63965 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config struct {
	Server   ServerConfig   `yaml:"server"`
	Database DatabaseConfig `yaml:"database"`
	Redis    RedisConfig    `yaml:"redis"`
}

Functions

func Main

func Main() error

Main program or run the server

Types

type DatabaseConfig

type DatabaseConfig struct {
	Master   string `yaml:"master"`
	Follower string `yaml:"follower"`
}

type RedisConfig

type RedisConfig struct {
	Address string `yaml:"address"`
}

type ServerConfig

type ServerConfig struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

Jump to

Keyboard shortcuts

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