config

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DownloadURL = "http://dl.linkv.fun/static/server"
View Source
const FILE = "decrypt"
View Source
const VERSION = "0.0.4"

Variables

View Source
var Conf = &Config{}

Functions

This section is empty.

Types

type Config

type Config struct {
	IM   IMConfig   `json:"im"`
	RTC  RTCConfig  `json:"rtc"`
	Live LiveConfig `json:"sensor"`
	Shop ShopConfig `json:"shop"`
}

func (*Config) Init

func (c *Config) Init(appID, appSecret string) error

type IMConfig

type IMConfig struct {
	AppID     string `json:"app_id"`
	AppKey    string `json:"app_key"`
	AppSecret string `json:"app_secret"`
	URL       string `json:"url"`
}

type LiveConfig added in v0.4.2

type LiveConfig struct {
	AppID     string `json:"app_id"`
	AppKey    string `json:"app_key"`
	AppSecret string `json:"app_secret"`
	Alias     string `json:"alias"`
	URL       string `json:"url"`
}

type RTCConfig

type RTCConfig struct {
	AppID  string `json:"app_id"`
	AppKey string `json:"app_key"`
}

type ShopConfig added in v0.4.8

type ShopConfig struct {
	AppID     string `json:"app_id"`
	AppKey    string `json:"app_key"`
	AppSecret string `json:"app_secret"`
	Alias     string `json:"alias"`
	URL       string `json:"url"`
}

Jump to

Keyboard shortcuts

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