config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.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 Default

type Default struct {
	// 认证密钥
	AuthCipher string
	// 网关地址
	Gateway string
	// Mongo
	Mongo string
	// 名字
	Name string
	// 端口
	Port int
	// redis
	Redis DefaultRedis
}

默认配置

func (Default) GetAuthCipher added in v1.4.0

func (m Default) GetAuthCipher() string

func (Default) GetGateway added in v1.2.0

func (m Default) GetGateway() string

func (Default) GetMongo

func (m Default) GetMongo() string

func (Default) GetName

func (m Default) GetName() string

func (Default) GetPort

func (m Default) GetPort() int

func (Default) GetRedis

func (m Default) GetRedis() contract.IRedisOption

type DefaultRedis added in v1.2.0

type DefaultRedis struct {
	Port     int
	Host     string
	Password string
}

默认Redis

func (DefaultRedis) GetAddr added in v1.2.0

func (m DefaultRedis) GetAddr() string

func (DefaultRedis) GetPassword added in v1.2.0

func (m DefaultRedis) GetPassword() string

Jump to

Keyboard shortcuts

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