examples

package
Version: v0.0.0-...-4fc1480 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthMsgID   = 101
	Login1MsgID = 102
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMsg

type AuthMsg struct {
	Test uint32
}

func (*AuthMsg) Write

func (msg *AuthMsg) Write(w *kproto.Buffer) error

type ILoginService

type ILoginService interface {
	Login(req *Login1Msg) (reply *AuthMsg, err error)
}

type Login1Msg

type Login1Msg struct {
	UserName uint32
	Password string
	Auth     AuthMsg
	LastIP   string
}

func (*Login1Msg) Write

func (msg *Login1Msg) Write(w *kproto.Buffer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL