config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 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_name"`
	ApiID   string `json:"api_id"`
	ApiKey  string `json:"api_key"`
	ApiURI  string `json:"api_uri"`
}

type RTCConfig

type RTCConfig struct {
	ApiID  string `json:"api_id"`
	ApiKey string `json:"api_key"`
}

Jump to

Keyboard shortcuts

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