config

package
v0.0.0-...-bb6f81a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulConfig

type ConsulConfig struct {
	Host string `mapstructure:"host" json:"host"`
	Port int    `mapstructure:"port" json:"port"`
}

type JwtConfig

type JwtConfig struct {
	SignatureKey string `mapstructure:"signature_key" json:"signature_key"`
	ExpireSecond int    `mapstructure:"expire_second" json:"expire_second"`
	ExpireCount  int    `mapstructure:"expire_count" json:"expire_count"`
}

type NacosConfig

type NacosConfig struct {
	Host      string `mapstructure:"host" json:"host"`
	Port      int    `mapstructure:"port" json:"port"`
	Namespace string `mapstructure:"namespace" json:"namespace"`
	User      string `mapstructure:"user" json:"user"`
	Password  string `mapstructure:"password" json:"password"`
	DataID    string `mapstructure:"data_id" json:"data_id"`
	Group     string `mapstructure:"group" json:"group"`
}

type ServerConfig

type ServerConfig struct {
	Name         string       `mapstructure:"name" json:"name"`
	Port         int          `mapstructure:"port" json:"port"`
	Host         string       `mapstructure:"host" json:"host"`
	Tags         []string     `mapstructure:"tags" json:"tags"`
	Mode         string       `mapstructure:"mode" json:"mode"`
	JwtConfig    JwtConfig    `mapstructure:"jwt" json:"jwt"`
	ConsulConfig ConsulConfig `mapstructure:"consul" json:"consul"`
	SpaceConfig  SpaceConfig  `mapstructure:"space_srv" json:"space_srv"`
}

type SpaceConfig

type SpaceConfig struct {
	Name string `mapstructure:"name" json:"name"`
}

Jump to

Keyboard shortcuts

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