mirror of
https://github.com/supleed2/go-chat.git
synced 2024-11-14 13:45:48 +00:00
26 lines
205 B
Go
26 lines
205 B
Go
|
package common
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type SMsg struct {
|
||
|
Tim time.Time
|
||
|
Id string
|
||
|
Msg string
|
||
|
}
|
||
|
|
||
|
type CMsgT int
|
||
|
|
||
|
const (
|
||
|
Sudo CMsgT = iota
|
||
|
Echo
|
||
|
Mv
|
||
|
Ls
|
||
|
Cd
|
||
|
Who
|
||
|
)
|
||
|
|
||
|
type CMsg struct {
|
||
|
Typ CMsgT
|
||
|
Msg string
|
||
|
}
|