config

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base() hero.Result

func StreamView

func StreamView() hero.Result

func UpdateBase

func UpdateBase(ctx iris.Context) hero.Result

func UpdateStreamView

func UpdateStreamView(ctx iris.Context) hero.Result

func UpdateWebView

func UpdateWebView(ctx iris.Context) hero.Result

func WebView

func WebView() hero.Result

Types

type APIConfig

type APIConfig struct {
	Addr string `json:"addr"`
	Port int    `json:"port"`
}

type DefaultConfig

type DefaultConfig struct {
	Username        string `json:"username"`
	Organization    string `json:"organization"`
	Effect          int    `json:"effect"`
	PageSize        int64  `json:"pagesize"`
	TokenExpiration int64  `json:"expiration"`
}

type Form

type Form struct {
	Sys         *SysConfig     `json:"sys"`
	Api         *APIConfig     `json:"api"`
	Def         *DefaultConfig `json:"default"`
	Log         *LogConfig     `json:"log"`
	Inverse     *InverseConfig `json:"inverse"`
	GeTuiConfig *GeTuiConfig   `json:"getui"`
}

type GeTuiConfig

type GeTuiConfig struct {
	AppID        string `json:"appId"`
	AppKey       string `json:"appKey"`
	AppSecret    string `json:"appSecret"`
	MasterSecret string `json:"masterSecret"`
}

type InverseConfig

type InverseConfig struct {
	Port int `json:"port"`
}

type LogConfig

type LogConfig struct {
	Level    string `json:"level"`
	FileName string `json:"filename"`
}

type Stream

type Stream struct {
	Title string `json:"title"`
	Url   string `json:"url"`
}

type SysConfig

type SysConfig struct {
	Title    string `json:"title"`
	RegOwner string `json:"reg_owner"`
	RegCode  string `json:"reg_code"`
}

Jump to

Keyboard shortcuts

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