mirror of https://github.com/gissleh/irc.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
668 B
25 lines
668 B
package irc
|
|
|
|
import (
|
|
"github.com/gissleh/irc/isupport"
|
|
"github.com/gissleh/irc/list"
|
|
)
|
|
|
|
type ClientState struct {
|
|
ID string `json:"id"`
|
|
Nick string `json:"nick"`
|
|
User string `json:"user"`
|
|
Host string `json:"host"`
|
|
Connected bool `json:"connected"`
|
|
Ready bool `json:"quit"`
|
|
ISupport *isupport.State `json:"isupport"`
|
|
Caps []string `json:"caps"`
|
|
Targets []TargetState `json:"targets"`
|
|
}
|
|
|
|
type TargetState struct {
|
|
ID string `json:"id"`
|
|
Kind string `json:"kind"`
|
|
Name string `json:"name"`
|
|
Users []list.User `json:"users,omitempty"`
|
|
}
|