config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	HostURL             string
	Timeout             time.Duration
	SlowRequestDuration time.Duration

	EnableSign  bool
	EnableDebug bool

	Key    string
	Secret string
}

type ServerConfig

type ServerConfig struct {
	Addr string

	Timeout time.Duration
	Mode    string

	SlowRequestDuration time.Duration
	WatchConfig         bool

	EnableMetric bool
}

func DefaultServerConfig

func DefaultServerConfig() *ServerConfig

Jump to

Keyboard shortcuts

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