Documentation ¶
Index ¶
- Variables
- func GetFullURL(app App, request Request) string
- func JsonIo2Text(bt io.ReadCloser) ([]byte, error)
- func PostC(request *Request) (*http.Response, error)
- func SHA1(s string) string
- type App
- type Data
- type DownloadInfo
- type ErrCode
- type Header
- type OSInfo
- type Request
- type RequestMode
- type RequestReturnType
- type RpSystemInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RqSystem_Info = NewRequest("System_Info", Post, JSON) RqSystem_Config = NewRequest("System_Config", Post, JSON) RqSystem_Resources = NewRequest("System_Resources", Post, JSON) RqSystem_QueryWebFirstStart = NewRequest("System_QueryWebFirstStart", Post, JSON) RqSystem_QueryUserState = NewRequest("System_QueryUserState", Post, JSON) RqConfig_Transcod = NewRequest("Config_Transcod", Post, JSON) RqConfig_FileSplit = NewRequest("Config_FileSplit", Post, JSON) RqConfig_DanmuRec = NewRequest("Config_DanmuRec", Post, JSON) RqConfig_GetFollow = NewRequest("Config_GetFollow", Post, JSON) RqFile_GetAllFileList = NewRequest("File_GetAllFileList", Post, JSON) RqFile_GetTypeFileList = NewRequest("File_GetTypeFileList", Post, JSON) RqFile_GetFilePathList = NewRequest("File_GetFilePathList", Post, JSON) RqLogin = NewRequest("Login", Post, JSON) //RqLoginqr = NewRequest("loginqr", Get, PNG) RqLogin_Reset = NewRequest("Login_Reset", Post, JSON) RqLogin_State = NewRequest("Login_State", Post, JSON) RqRec_RecordingInfo = NewRequest("Rec_RecordingInfo", Post, JSON) RqRec_RecordingInfo_Lite = NewRequest("Rec_RecordingInfo_Lite", Post, JSON) RqRec_RecordCompleteInfon = NewRequest("Rec_RecordCompleteInfon", Post, JSON) RqRec_RecordCompleteInfon_Lite = NewRequest("Rec_RecordCompleteInfon_Lite", Post, JSON) RqRec_CancelDownload = NewRequest("Rec_CancelDownload", Post, JSON) RqRoom_AllInfo = NewRequest("Room_AllInfo", Post, JSON) RqRoom_SummaryInfo = NewRequest("Room_SummaryInfo", Post, JSON) RqRoom_Add = NewRequest("Room_Add", Post, JSON) RqRoom_Del = NewRequest("Room_Del", Post, JSON) RqRoom_AutoRec = NewRequest("Room_AutoRec", Post, JSON) RqRoom_DanmuRec = NewRequest("Room_DanmuRec", Post, JSON) RqUser_Search = NewRequest("User_Search", Post, JSON) )
Functions ¶
func GetFullURL ¶
func JsonIo2Text ¶
func JsonIo2Text(bt io.ReadCloser) ([]byte, error)
Types ¶
type App ¶
type DownloadInfo ¶
type Header ¶
type Header struct { Time int64 `json:"time,omitempty"` Cmd string `json:"cmd,omitempty"` Sig string `json:"sig,omitempty"` Accesskeyid string `json:"accesskeyid,omitempty"` }
func UnmarshalHeader ¶
type OSInfo ¶
type OSInfo struct { OSVer string `json:"OS_Ver"` OSTpye string `json:"OS_Tpye"` MemoryUsage int64 `json:"Memory_Usage"` RuntimeVer string `json:"Runtime_Ver"` UserInteractive bool `json:"UserInteractive"` AssociatedUsers string `json:"Associated_Users"` CurrentDirectory string `json:"Current_Directory"` AppCoreVer string `json:"AppCore_Ver"` WebCoreVer string `json:"WebCore_Ver"` }
type Request ¶
type Request struct { Name string Header *Header RequestMode RequestMode RequestReturnType RequestReturnType Url string }
Request 请求结构
func NewRequest ¶
func NewRequest(name string, requestMode RequestMode, returnType RequestReturnType) *Request
type RequestMode ¶
type RequestMode int
const ( Post RequestMode = 1 Get RequestMode = 2 )
func (RequestMode) ToString ¶
func (e RequestMode) ToString() string
type RequestReturnType ¶
type RequestReturnType int
const ( JSON RequestReturnType = 1 PNG RequestReturnType = 2 FileStram RequestReturnType = 3 )
func (RequestReturnType) ToString ¶
func (e RequestReturnType) ToString() string
type RpSystemInfo ¶
type RpSystemInfo struct { Code int64 `json:"code"` Cmd string `json:"cmd"` Massage string `json:"massage"` Data Data `json:"data"` }
func UnmarshalRpSystemInfo ¶
func UnmarshalRpSystemInfo(data []byte) (RpSystemInfo, error)
func (*RpSystemInfo) Marshal ¶
func (r *RpSystemInfo) Marshal() ([]byte, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.