conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfig = &App{}
View Source
var ServerConfig = &Server{}

Functions

func Setup

func Setup()

Types

type App

type App struct {
	RuntimeRootPath string
	LogFileLocation string
	LogFileSaveName string
	LogFileExt      string
	TimeFormat      string
}

type Grpc

type Grpc struct {
	Server string
	Port   string
}
var GrpcConfig *Grpc

type Kafka

type Kafka struct {
	Locations []string
}
var KafkaConfig *Kafka

type Server

type Server struct {
	RunMode      string
	HttpPort     int
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

Jump to

Keyboard shortcuts

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