user

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	RecvMsg <-chan string
	SendMsg chan<- string
	// contains filtered or unexported fields
}

func NewUser

func NewUser(sessionId int, name string, recv <-chan string, send chan<- string, recvErr, sendErr <-chan error) *User

func (*User) EnterService

func (u *User) EnterService(service string)

func (*User) GetHP

func (u *User) GetHP() int

func (*User) Kick

func (u *User) Kick(reason string)

func (*User) LeaveAllService

func (u *User) LeaveAllService()

func (*User) LeaveService

func (u *User) LeaveService(service string)

func (*User) Login

func (u *User) Login()

func (*User) Logout

func (u *User) Logout(reason string)

func (*User) Name

func (u *User) Name() string

func (*User) Send

func (u *User) Send(msg []byte)

func (*User) SessionId

func (u *User) SessionId() int

func (*User) SetHP

func (u *User) SetHP(hp int)

func (*User) Tick

func (u *User) Tick()

Jump to

Keyboard shortcuts

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