pubmsg

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hero

type Hero struct {
	ID   int    `json:"id" msgpack:"mID"`
	Name string `json:"name" msgpack:"mName"`
}

Hero hero struct

type HeroGetAllArgs

type HeroGetAllArgs struct {
	PublicArgsFunc `json:"-" msgpack:"-"`
}

HeroGetAllArgs args

type HeroGetAllData

type HeroGetAllData struct {
	Heroes []Hero `json:"heroes" msgpack:"mHeroes"`
}

HeroGetAllData reply data

type HeroGetAllReply

type HeroGetAllReply struct {
	Head            *message.ResHead `json:"head" msgpack:"mHead"`
	Body            *HeroGetAllData  `json:"body" msgpack:"mBody"`
	PublicReplyFunc `json:"-" msgpack:"-"`
}

HeroGetAllReply reply

type PublicArgs added in v1.0.4

type PublicArgs interface {
}

type PublicArgsFunc

type PublicArgsFunc struct{}

PublicArgsFunc 所有Args报文的公共方法

type PublicReply added in v1.0.4

type PublicReply interface {
	GetSessionID() string
}

type PublicReplyFunc

type PublicReplyFunc struct{}

PublicReplyFunc 所有Reply报文的公共方法

func (*PublicReplyFunc) GetSessionID

func (pf *PublicReplyFunc) GetSessionID() (sessionid string)

GetSessionID 取SessionID

type SignInArgs

type SignInArgs struct {
	Usercode       string
	Password       string
	PublicArgsFunc `json:"-" msgpack:"-"`
}

SignInArgs args

type SignInData

type SignInData struct {
	SessionID string
}

SignInData reply data

type SignInReply

type SignInReply struct {
	Head            *message.ResHead
	Body            *SignInData
	PublicReplyFunc `json:"-" msgpack:"-"`
}

SignInReply reply

type SignUpArgs

type SignUpArgs struct {
	Usercode       string
	Password       string
	PublicArgsFunc `json:"-" msgpack:"-"`
}

SignUpArgs args

type SignUpData

type SignUpData struct {
	SessionID string
}

SignUpData reply data

type SignUpReply

type SignUpReply struct {
	Head            *message.ResHead
	Body            *SignUpData
	PublicReplyFunc `json:"-" msgpack:"-"`
}

SignUpReply reply

func (*SignUpReply) GetSessionID

func (reply *SignUpReply) GetSessionID() (sessionid string)

GetSessionID 取sessionid

Jump to

Keyboard shortcuts

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