Documentation
¶
Index ¶
- Variables
- type Building
- type Speak
- func (speak *Speak) Reverse() *Speak
- func (speak *Speak) SetAtNow() *Speak
- func (lanauage *Speak) SetCUID(cuid *string) *Speak
- func (lanauage *Speak) SetEvent(name string) *Speak
- func (speak *Speak) SetFrom(building *Building) *Speak
- func (speak *Speak) SetGuest(value bool) *Speak
- func (lanauage *Speak) SetMUID(muid string) *Speak
- func (lanauage *Speak) SetRUID(ruid *string) *Speak
- func (speak *Speak) SetTo(building *Building) *Speak
- func (lanauage *Speak) SetToken(token string) *Speak
- func (lanauage *Speak) SetUUID(uuid *string) *Speak
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EVENT = "event" MAIL = "MAIL" AUTH = "auth" TOWNNAME = "townland" MAYOR = "mayor" CONNECT = "connect" // civilian connect on getway DISCONNECT = "disconnect" // civilian disconnect on getway EXPRESS = "express" // send express mail (for http) FROM = Building{ Home: &TOWNNAME, Room: &MAYOR, } )
View Source
var Default defaults = defaults{ BadMessage: Speak{ Type: &EVENT, From: &FROM, Event: "bad-message", }, BadToken: Speak{ Type: &EVENT, From: &FROM, Event: "bad-token", }, Authed: Speak{ Type: &EVENT, From: &FROM, Event: "authed", }, ReAuth: Speak{ Type: &EVENT, From: &FROM, Event: "reauth", }, UnAuth: Speak{ Type: &EVENT, From: &FROM, Event: "unauth", }, Handshaked: Speak{ Type: &EVENT, From: &FROM, Event: "handshaked", }, NotHandshaked: Speak{ Type: &EVENT, From: &FROM, Event: "not-handshaked", }, }
Functions ¶
This section is empty.
Types ¶
type Speak ¶
type Speak struct {
Token string `json:"token,omitempty"` // human access token
MUID string `json:"muid,omitempty"` // mail unique id
UUID *string `json:"uuid,omitempty"` // user/human id from access token
RUID *string `json:"ruid,omitempty"` // road unique id
CUID *string `json:"cuid,omitempty"` // civilian unique id
Type *string `json:"type"` // "event", "mail", "auth", "express"
At int64 `json:"at,omitempty"` // send timestamp
Event string `json:"event,omitempty"` // event name in Type "event" and "request"
From *Building `json:"from,omitempty"` // from who
To *Building `json:"to,omitempty"` // to who
Guest *bool `json:"guest,omitempty"` // is temp user
Data string `json:"data,omitempty"` // sended data
}
Click to show internal directories.
Click to hide internal directories.