majsoul

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecordTypeAll         uint32 = 0
	RecordTypeFriend      uint32 = 1
	RecordTypeLevel       uint32 = 2
	RecordTypeCompetition uint32 = 4
)

Variables

This section is empty.

Functions

func DownloadRecords

func DownloadRecords(username string, password string, recordType uint32) error

TODO: add token

Types

type Message

type Message struct {
	Name            string        `json:"name"`
	RequestMessage  proto.Message `json:"request_message,omitempty"`
	ResponseMessage proto.Message `json:"response_message,omitempty"`
	NotifyMessage   proto.Message `json:"notify_message,omitempty"`
}

若 NotifyMessage 不为空,这该消息为通知,RequestMessage 和 ResponseMessage 字段为空 否则该消息为请求响应,NotifyMessage 字段为空

type MessageReceiver

type MessageReceiver struct {
	// contains filtered or unexported fields
}

func NewMessageReceiver

func NewMessageReceiver() *MessageReceiver

func (*MessageReceiver) Get

func (mr *MessageReceiver) Get() *Message

func (*MessageReceiver) Put

func (mr *MessageReceiver) Put(data []byte)

Directories

Path Synopsis
Code generated by tool/liqi_test.go.
Code generated by tool/liqi_test.go.
proto
lq
Package lq is a generated protocol buffer package.
Package lq is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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