conf

package
v0.0.0-...-93c743e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceConfig

type ServiceConfig struct {
	ServiceId     string
	NodeID        int64
	Listen        string `default:":8080"`
	PublicAddress string
	PublicPort    int `default:"8080"`
	Tags          []string
	ConsulURL     string
	BaseDb        string
	MessageDb     string
	LogLevel      string `default:"INFO"`
}

ServiceConfig Configuration

func InitServiceConfig

func InitServiceConfig(file string) (*ServiceConfig, error)

func (ServiceConfig) String

func (c ServiceConfig) String() string

Jump to

Keyboard shortcuts

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