config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 6 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"`
}

func (*Config) Init

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

type IMConfig

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

type RTCConfig

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

Jump to

Keyboard shortcuts

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