backend

package
v0.0.0-...-94d958d Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDomainCert

func GenerateDomainCert(cfg *config.Config) (*tls.Certificate, error)

func RegisterHandler

func RegisterHandler(cfg *config.Config) *gin.Engine

Types

type AuthLogin

type AuthLogin struct {
	SessionId        string `msgpack:"SessionId"`
	UserId           string `msgpack:"UserId"`
	IsInCommunityBan bool   `msgpack:"IsInCommunityBan"`
}

type AuthLoginResponse

type AuthLoginResponse struct {
	SessionId        string `msgpack:"SessionId"`
	UserId           string `msgpack:"UserId"`
	IsInCommunityBan bool   `msgpack:"IsInCommunityBan"`
}

type BlockList

type BlockList struct {
	IsConsistent  bool          `msgpack:"IsConsistent"`
	BlockedHunter []interface{} `msgpack:"BlockedHunter"`
	OperationId   int           `msgpack:"OperationId"`
}

type CustomProperty

type CustomProperty struct {
	ObtInfo *ObtInfo `json:"obt_info"`
	QA3     *QA3     `json:"qa3"`
}

type EmptyList

type EmptyList struct {
	List []interface{} `msgpack:"List"`
}

type FollowTotalList

type FollowTotalList struct {
	FollowList      []interface{} `msgpack:"FollowList"`
	LastOperationId string        `msgpack:"LastOperationId"`
}

type FriendList

type FriendList struct {
	FriendList []interface{} `msgpack:"FriendList"`
}

type Hunter

type Hunter struct {
	HunterSaveList []HunterInfo `msgpack:"HunterSaveList"`
	UsingSaveSlot  int          `msgpack:"UsingSaveSlot"`
}

type HunterInfo

type HunterInfo struct {
	HunterId   string `msgpack:"HunterId"`
	HunterName string `msgpack:"HunterName"`
	OtomoName  string `msgpack:"OtomoName"`
	SaveSlot   int    `msgpack:"SaveSlot"`
}

type HunterSaveResponse

type HunterSaveResponse struct {
	HunterInfo
	ShortId string `msgpack:"ShortId"`
}

type HunterSyncResponse

type HunterSyncResponse struct {
	InvalidSaveSlotInfoList   interface{}          `msgpack:"InvalidSaveSlotInfoList"`
	InvalidClientHunterIdList interface{}          `msgpack:"InvalidClientHunterIdList"`
	SaveSlotInfoList          []HunterSaveResponse `msgpack:"SaveSlotInfoList"`
}

type HunterUpload

type HunterUpload struct {
	UploadUrl     string        `msgpack:"UploadUrl"`
	SignedHeaders []SignHeaders `msgpack:"SignedHeaders"`
}

type LobbyAutoJoin

type LobbyAutoJoin struct {
	Endpoints []string `msgpack:"Endpoints"`
}

type ObtInfo

type ObtInfo struct {
	Env       int   `json:"env"`
	StartTime int64 `json:"start_time"`
	EndTime   int64 `json:"end_time"`
}

type QA3

type QA3 struct {
	Api    string `json:"api"`
	Notify string `json:"notify"`
}

type SignHeaders

type SignHeaders struct {
	HeaderKey    string   `msgpack:"HeaderKey"`
	HeaderValues []string `msgpack:"HeaderValues"`
}

type SystemPkt

type SystemPkt struct {
	ApiTimeout     int    `json:"api_timeout"`
	CustomProperty string `json:"custom_property"`
	JsonVer        string `json:"json_ver"`
	MMR            string `json:"mmr"`
	MTM            string `json:"mtm"`
	MTMs           string `json:"mtms"`
	NKM            string `json:"nkm"`
	Revision       string `json:"revision"`
	Selector       string `json:"selector"`
	Title          string `json:"title"`
	TMR            string `json:"tmr"`
	WLT            string `json:"wlt"`
	WorkingState   string `json:"working_state"`
}

Jump to

Keyboard shortcuts

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