config

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	SecretKey        string
	PublicKey        string
	ShortTokenExpire int64
	LongTokenExpire  int64
}

type Config

type Config struct {
	service.ServiceConf
	ListenOn              string
	Auth                  Auth
	GithubConf            OauthConf
	GiteeConf             OauthConf
	Redis                 redis.RedisConf
	CreateNotificationsKq KqConfig
	UpdateNotificationsKq KqConfig
	CreateItemsKq         KqConfig
	CreateFeedBacksKq     KqConfig
	UpdateItemKq          KqConfig
	DeleteItemKq          KqConfig
	BaseUrl               string
}

func GetConfig

func GetConfig() *Config

func NewConfig

func NewConfig() (*Config, error)

func (*Config) GetUrl

func (c *Config) GetUrl(name string) string

type KqConfig

type KqConfig struct {
	Brokers []string
	Topic   string
}

type OauthConf

type OauthConf struct {
	ClientId string
	Secret   string
	Redirect string
}

Jump to

Keyboard shortcuts

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