Documentation ¶
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- func ParseReq(r *http.Request, v interface{}) error
- func Unmarshal(data []byte, v interface{}) error
- type BufferedResponseWriter
- type Decoder
- type Encoder
- type Payload
- type RawJSON
- type StatGetReqPayload
- type StatGetRequest
- type StatGetRespHeader
- type StatGetRespPayload
- type StatGetResponse
- type StatReqHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BufferedResponseWriter ¶
BufferedResponseWriter is a wrapper around http.ResponseWriter that buffers the response for later use.
func (*BufferedResponseWriter) Header ¶
func (b *BufferedResponseWriter) Header() http.Header
func (*BufferedResponseWriter) Write ¶
func (b *BufferedResponseWriter) Write(data []byte) (int, error)
func (*BufferedResponseWriter) WriteHeader ¶
func (b *BufferedResponseWriter) WriteHeader(code int)
type RawJSON ¶
type RawJSON map[string]interface{}
func (*RawJSON) DecodeMsgpack ¶
func (*RawJSON) EncodeMsgpack ¶
type StatGetReqPayload ¶
type StatGetReqPayload struct { OtherUserID string // 18 digit User ID of other player. Empty string if self. Type int // Request type. 1: Vs stats (tension use, RC usage, perfects, etc). 2: Battle Record/Battle Chart. 6: Single player stats (eg mission, story). 7: Levels, Floor, Name, etc. 8: Unknown. 9: News. Unk2 int // Set to -1 normally. Sometimes set to 1 on Type 1 requests. Page int // Seems to be page number or character ID. -1 if N/A. 0 for first page. Only used by Type 6 and 8. Unk3 int // Set to -1 normally. Sometimes set to -2 on Type 1 requests. Unk4 int // -1 // contains filtered or unexported fields }
type StatGetRequest ¶
type StatGetRequest struct { Header StatReqHeader Payload StatGetReqPayload // contains filtered or unexported fields }
type StatGetRespHeader ¶
type StatGetRespHeader struct { Hash string // Some sort of incrementing 13 char hash Unk1 int // Unknown, always 0 Timestamp string // Current time in "YYYY/MM/DD HH:MM:SS" in UTC Version1 string // Some version string. "0.1.1" in v1.16. "0.0.7" in v1.10. "0.0.6" in v1.07. "0.0.5" in v1.06, was "0.0.4" in v1.05 Version2 string // Another version string. Always 0.0.2 Version3 string // Another version string. Always 0.0.2 Unk2 string // Unknown, empty string Unk3 string // Unknown, empty string // contains filtered or unexported fields }
type StatGetRespPayload ¶
type StatGetResponse ¶
type StatGetResponse struct { Header StatGetRespHeader Payload StatGetRespPayload // contains filtered or unexported fields }
func UnmarshalStatResp ¶
func UnmarshalStatResp(data []byte) (*StatGetResponse, error)
type StatReqHeader ¶
Click to show internal directories.
Click to hide internal directories.