Documentation ¶
Index ¶
- Constants
- func GetTimeFormat() string
- func InitGlobalLog()
- func InitWsServer(g *ClientGroup, port int, httpsEnable bool, crtPath string, keyPath string)
- func LoadLoggerModule(logLevel string, toFile bool, logPath, logErrorPath string)
- func ReleaseLoggerModule()
- type ClientGroup
- type LogLevel
- type Logging
- func (logging *Logging) Debug(v ...interface{})
- func (logging *Logging) Debugf(format string, v ...interface{})
- func (logging *Logging) Error(v ...interface{})
- func (logging *Logging) Errorf(format string, v ...interface{})
- func (logging *Logging) Fatal(v ...interface{})
- func (logging *Logging) Fatalf(format string, v ...interface{})
- func (logging *Logging) Info(v ...interface{})
- func (logging *Logging) Infof(format string, v ...interface{})
- func (logging *Logging) Trace(v ...interface{})
- func (logging *Logging) Tracef(format string, v ...interface{})
- func (logging *Logging) Warn(v ...interface{})
- func (logging *Logging) Warnf(format string, v ...interface{})
- type MediaRequest
- type MediaServer
Constants ¶
View Source
const ( TraceColor = 34 DebugColor = 36 InfoColor = 32 WarnColor = 33 ErrorColor = 91 FatalColor = 35 )
View Source
const ( ServerTag = " [ SERVE ] |%s| - " TraceTag = " [ TRACE ] |%s| - %s:%d: " DebugTag = " [ DEBUG ] |%s| - %s:%d: " InfoTag = " [ INFO ] |%s| - %s:%d: " WarnTag = " [ WARN ] |%s| - %s:%d: " ErrorTag = " [ ERROR ] |%s| - %s:%d: " FatalTag = " [ FATAL ] |%s| - %s:%d: " ColorTag = "\x1b[%dm%s\x1b[0m" )
Variables ¶
This section is empty.
Functions ¶
func GetTimeFormat ¶
func GetTimeFormat() string
func InitGlobalLog ¶
func InitGlobalLog()
func InitWsServer ¶
func InitWsServer(g *ClientGroup, port int, httpsEnable bool, crtPath string, keyPath string)
func LoadLoggerModule ¶
func ReleaseLoggerModule ¶
func ReleaseLoggerModule()
Types ¶
type ClientGroup ¶
type ClientGroup struct {
// contains filtered or unexported fields
}
func NewClientGroup ¶
func NewClientGroup(natsUrls []string) *ClientGroup
func (*ClientGroup) Run ¶
func (g *ClientGroup) Run()
type Logging ¶
type Logging struct { Level LogLevel // contains filtered or unexported fields }
var (
Log Logging
)
type MediaRequest ¶
type MediaRequest struct { Method string `json:"method"` Params jsonMap `json:"params"` }
Click to show internal directories.
Click to hide internal directories.