config

package
v0.0.0-...-80e21b9 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(configFile string) fx.Option

Types

type App

type App struct {
	Name       string
	Server     *Server
	Repository []string
}

func NewAppConfig

func NewAppConfig(file string) (*App, error)

type Server

type Server struct {
	Host string
	Port int
}

func (*Server) GetListenAddr

func (c *Server) GetListenAddr() string

Jump to

Keyboard shortcuts

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