config

package
v0.0.0-...-40e65af Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfigJson

func InitConfigJson(fliepath string) error

InitConfigJson 初始化配置

Types

type GlobalConfig

type GlobalConfig struct {
	Srs  SrsbaseConfig `json:"srs"`
	Self SelfConfig    `json:"self"`
}

GlobalConfig 全局配置

func Config

func Config() *GlobalConfig

Config 全局配置

type SelfConfig

type SelfConfig struct {
	Tag  int `json:"tag"`
	Port int `json:"port"`
}

SelfConfig 私有配置

type SrsbaseConfig

type SrsbaseConfig struct {
	APIBase  string `json:"api_base"`
	RtmpBase string `json:"rtmp_base"`
	FlvBase  string `json:"flv_base"`
}

SrsbaseConfig SRS服务器配置

Jump to

Keyboard shortcuts

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