config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func New

func New(configDSN string) *Config

func (*Config) Close

func (c *Config) Close()

func (*Config) GetApiKey added in v1.0.7

func (c *Config) GetApiKey() map[string]struct{}

func (*Config) GetIPWhiteList added in v1.0.6

func (c *Config) GetIPWhiteList() *map[string]struct{}

func (*Config) GetServeFee

func (c *Config) GetServeFee() int64

func (*Config) GetSpeedFee

func (c *Config) GetSpeedFee() int64

func (*Config) Run

func (c *Config) Run()

type Wdb

type Wdb struct {
	Db *gorm.DB
}

func NewWdb

func NewWdb(dsn string) *Wdb

func (*Wdb) Close

func (w *Wdb) Close()

func (*Wdb) GetAllApiKey added in v1.0.7

func (w *Wdb) GetAllApiKey() ([]schema.ApiKey, error)

func (*Wdb) GetAllAvailableIpRateWhitelist added in v1.0.6

func (w *Wdb) GetAllAvailableIpRateWhitelist() ([]schema.IpRateWhitelist, error)

func (*Wdb) GetFee

func (w *Wdb) GetFee() (fee schema.FeeConfig, err error)

func (*Wdb) Migrate

func (w *Wdb) Migrate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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