config

package
v2.0.0-...-1ed8dcf Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config *config
)

Functions

func ExistAppID

func ExistAppID(appID string) bool

func Init

func Init()

Types

type AppConfig

type AppConfig struct {
	ID               string `mapstructure:"id"`
	Token            string `mapstructure:"token"`
	DataType         string `mapstructure:"data_type"`
	EncryptionMethod string `mapstructure:"encryption_method"`
	EncodingAESKey   string `mapstructure:"encoding_aes_key"`
	Callback         string `mapstructure:"callback"`
}

func GetApp

func GetApp(appID string) *AppConfig

func GetApps

func GetApps() []*AppConfig

Jump to

Keyboard shortcuts

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