module

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Result

func Result(moduleKeyID int, data string) (rm json.RawMessage, checkSum int64, err error)

Result get module message

func VerifyModuleKey

func VerifyModuleKey(key string) int

VerifyModuleKey verify key

Types

type Player

type Player struct {
	// special fields
	PlayerWebDanmakuAutoscaling        bool    `json:"player_web_danmaku_autoscaling"`
	PlayerWebHTML5DanmakuRenderingtype string  `json:"player_web_html5_danmaku_renderingtype"`
	PlayerAppPlaybackMode              int     `json:"player_app_playback_mode"`
	PlayerAppPlaybackBackground        bool    `json:"player_app_playback_background"`
	PlayerAppDanmakuStrokewidth        float64 `json:"player_app_danmaku_strokewidth"`
	// common fileds
	PlayerDanmakuOpacity         float64 `json:"player_danmaku_opacity"`
	PlayerDanmakuSpeed           float64 `json:"player_danmaku_speed"`
	PlayerDanmakuDensity         int     `json:"player_danmaku_density"`
	PlayerDanmakuScalingfactor   float64 `json:"player_danmaku_scalingfactor"`
	PlayerDanmakuStrokestyle     int     `json:"player_danmaku_strokestyle"`
	PlayerDanmakuFontname        string  `json:"player_danmaku_fontname"`
	PlayerDanmakuFontbold        bool    `json:"player_danmaku_fontbold"`
	PlayerDanmakuDefensivebottom bool    `json:"player_danmaku_defensivebottom"`
	PlayerDanmakuEnableblocklist bool    `json:"player_danmaku_enableblocklist"`
	PlayerDanmakuBlockrepeat     bool    `json:"player_danmaku_blockrepeat"`
	PlayerDanmakuBlocktop        bool    `json:"player_danmaku_blocktop"`
	PlayerDanmakuBlockscroll     bool    `json:"player_danmaku_blockscroll"`
	PlayerDanmakuBlockbottom     bool    `json:"player_danmaku_blockbottom"`
	PlayerDanmakuBlockcolorful   bool    `json:"player_danmaku_blockcolorful"`
	PlayerDanmakuBlockcommon     bool    `json:"player_danmaku_blockcommon"`
	PlayerDanmakuBlocksubtitle   bool    `json:"player_danmaku_blocksubtitle"`
	PlayerDanmakuBlockspecial    bool    `json:"player_danmaku_blockspecial"`
	PlayerDanmakuDomain          float64 `json:"player_danmaku_domain"`
	PlayerSubtitleSwitch         int     `json:"player_subtitle_switch"`
}

Player one module return json

type PlayerSha1

type PlayerSha1 struct {
	// special fields
	PlayerWebDanmakuAutoscaling        bool    `json:"player_web_danmaku_autoscaling,omitempty"`
	PlayerWebHTML5DanmakuRenderingtype string  `json:"player_web_html5_danmaku_renderingtype,omitempty"`
	PlayerAppPlaybackMode              int     `json:"player_app_playback_mode,omitempty"`
	PlayerAppPlaybackBackground        bool    `json:"player_app_playback_background,omitempty"`
	PlayerAppDanmakuStrokewidth        float64 `json:"player_app_danmaku_strokewidth,omitempty"`
	// common fileds
	PlayerDanmakuOpacity         float64 `json:"player_danmaku_opacity,omitempty"`
	PlayerDanmakuSpeed           float64 `json:"player_danmaku_speed,omitempty"`
	PlayerDanmakuDensity         int     `json:"player_danmaku_density,omitempty"`
	PlayerDanmakuScalingfactor   float64 `json:"player_danmaku_scalingfactor,omitempty"`
	PlayerDanmakuStrokestyle     int     `json:"player_danmaku_strokestyle,omitempty"`
	PlayerDanmakuFontname        string  `json:"player_danmaku_fontname,omitempty"`
	PlayerDanmakuFontbold        bool    `json:"player_danmaku_fontbold,omitempty"`
	PlayerDanmakuDefensivebottom bool    `json:"player_danmaku_defensivebottom,omitempty"`
	PlayerDanmakuEnableblocklist bool    `json:"player_danmaku_enableblocklist,omitempty"`
	PlayerDanmakuBlockrepeat     bool    `json:"player_danmaku_blockrepeat,omitempty"`
	PlayerDanmakuBlocktop        bool    `json:"player_danmaku_blocktop,omitempty"`
	PlayerDanmakuBlockscroll     bool    `json:"player_danmaku_blockscroll,omitempty"`
	PlayerDanmakuBlockbottom     bool    `json:"player_danmaku_blockbottom,omitempty"`
	PlayerDanmakuBlockcolorful   bool    `json:"player_danmaku_blockcolorful,omitempty"`
	PlayerDanmakuBlockcommon     bool    `json:"player_danmaku_blockcommon,omitempty"`
	PlayerDanmakuBlocksubtitle   bool    `json:"player_danmaku_blocksubtitle,omitempty"`
	PlayerDanmakuBlockspecial    bool    `json:"player_danmaku_blockspecial,omitempty"`
	PlayerDanmakuDomain          float64 `json:"player_danmaku_domain,omitempty"`
	PlayerSubtitleSwitch         int     `json:"player_subtitle_switch,omitempty"`
}

PlayerSha1 one module for sha1

type Setting

type Setting struct {
	Timestamp int64           `json:"timestamp"`
	CheckSum  int64           `json:"check_sum"`
	Data      json.RawMessage `json:"data"`
}

Setting ModuleConf

type WebPlayer

type WebPlayer struct {
	// special fields
	PlayerWebDanmakuAutoscaling        bool    `json:"player_web_danmaku_autoscaling"`
	PlayerWebHTML5DanmakuRenderingtype string  `json:"player_web_html5_danmaku_renderingtype"`
	PlayerAppPlaybackMode              int     `json:"player_app_playback_mode"`
	PlayerAppPlaybackBackground        bool    `json:"player_app_playback_background"`
	PlayerAppDanmakuStrokewidth        float64 `json:"player_app_danmaku_strokewidth"`
	// common fileds
	PlayerDanmakuOpacity         float64 `json:"player_danmaku_opacity"`
	PlayerDanmakuSpeed           float64 `json:"player_danmaku_speed"`
	PlayerDanmakuDensity         int     `json:"player_danmaku_density"`
	PlayerDanmakuScalingfactor   float64 `json:"player_danmaku_scalingfactor"`
	PlayerDanmakuStrokestyle     int     `json:"player_danmaku_strokestyle"`
	PlayerDanmakuFontname        string  `json:"player_danmaku_fontname"`
	PlayerDanmakuFontbold        bool    `json:"player_danmaku_fontbold"`
	PlayerDanmakuDefensivebottom bool    `json:"player_danmaku_defensivebottom"`
	PlayerDanmakuEnableblocklist bool    `json:"player_danmaku_enableblocklist"`
	PlayerDanmakuBlockrepeat     bool    `json:"player_danmaku_blockrepeat"`
	PlayerDanmakuBlocktop        bool    `json:"player_danmaku_blocktop"`
	PlayerDanmakuBlockscroll     bool    `json:"player_danmaku_blockscroll"`
	PlayerDanmakuBlockbottom     bool    `json:"player_danmaku_blockbottom"`
	PlayerDanmakuBlockcolorful   bool    `json:"player_danmaku_blockcolorful"`
	PlayerDanmakuBlockcommon     bool    `json:"player_danmaku_blockcommon"`
	PlayerDanmakuBlocksubtitle   bool    `json:"player_danmaku_blocksubtitle"`
	PlayerDanmakuBlockspecial    bool    `json:"player_danmaku_blockspecial"`
}

WebPlayer one module return json

type WebPlayerSha1

type WebPlayerSha1 struct {
	// special fields
	PlayerWebDanmakuAutoscaling        bool    `json:"player_web_danmaku_autoscaling,omitempty"`
	PlayerWebHTML5DanmakuRenderingtype string  `json:"player_web_html5_danmaku_renderingtype,omitempty"`
	PlayerAppPlaybackMode              int     `json:"player_app_playback_mode,omitempty"`
	PlayerAppPlaybackBackground        bool    `json:"player_app_playback_background,omitempty"`
	PlayerAppDanmakuStrokewidth        float64 `json:"player_app_danmaku_strokewidth,omitempty"`
	// common fileds
	PlayerDanmakuOpacity         float64 `json:"player_danmaku_opacity,omitempty"`
	PlayerDanmakuSpeed           float64 `json:"player_danmaku_speed,omitempty"`
	PlayerDanmakuDensity         int     `json:"player_danmaku_density,omitempty"`
	PlayerDanmakuScalingfactor   float64 `json:"player_danmaku_scalingfactor,omitempty"`
	PlayerDanmakuStrokestyle     int     `json:"player_danmaku_strokestyle,omitempty"`
	PlayerDanmakuFontname        string  `json:"player_danmaku_fontname,omitempty"`
	PlayerDanmakuFontbold        bool    `json:"player_danmaku_fontbold,omitempty"`
	PlayerDanmakuDefensivebottom bool    `json:"player_danmaku_defensivebottom,omitempty"`
	PlayerDanmakuEnableblocklist bool    `json:"player_danmaku_enableblocklist,omitempty"`
	PlayerDanmakuBlockrepeat     bool    `json:"player_danmaku_blockrepeat,omitempty"`
	PlayerDanmakuBlocktop        bool    `json:"player_danmaku_blocktop,omitempty"`
	PlayerDanmakuBlockscroll     bool    `json:"player_danmaku_blockscroll,omitempty"`
	PlayerDanmakuBlockbottom     bool    `json:"player_danmaku_blockbottom,omitempty"`
	PlayerDanmakuBlockcolorful   bool    `json:"player_danmaku_blockcolorful,omitempty"`
	PlayerDanmakuBlockcommon     bool    `json:"player_danmaku_blockcommon,omitempty"`
	PlayerDanmakuBlocksubtitle   bool    `json:"player_danmaku_blocksubtitle,omitempty"`
	PlayerDanmakuBlockspecial    bool    `json:"player_danmaku_blockspecial,omitempty"`
}

WebPlayerSha1 one module for sha1

Jump to

Keyboard shortcuts

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