Documentation ¶
Index ¶
- Constants
- type Away
- type ChannelForward
- type ChannelSearch
- type ChannelSearchResult
- type ClientCert
- type ConnectionUpdate
- type Dispatch
- type Error
- type Features
- type FetchMessages
- type File
- type IRCError
- type Invite
- type Join
- type Kick
- type MOTD
- type Message
- type Messages
- type Mode
- type Nick
- type NickFail
- type Part
- type Quit
- type Raw
- type ReconnectSettings
- type SearchRequest
- type SearchResult
- type Server
- type ServerName
- type State
- type Topic
- type Userlist
- type WSRequest
- type WSResponse
- type Whois
- type WhoisReply
Constants ¶
const ( // AnonymousUserExpiration is the time to wait before removing an anonymous // user that has no irc or websocket connections AnonymousUserExpiration = 1 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Away ¶
func (Away) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Away) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Away) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Away) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ChannelForward ¶ added in v0.6.1
func (ChannelForward) MarshalEasyJSON ¶ added in v0.6.1
func (v ChannelForward) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ChannelForward) MarshalJSON ¶ added in v0.6.1
func (v ChannelForward) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ChannelForward) UnmarshalEasyJSON ¶ added in v0.6.1
func (v *ChannelForward) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ChannelForward) UnmarshalJSON ¶ added in v0.6.1
func (v *ChannelForward) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ChannelSearch ¶ added in v0.6.1
func (ChannelSearch) MarshalEasyJSON ¶ added in v0.6.1
func (v ChannelSearch) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ChannelSearch) MarshalJSON ¶ added in v0.6.1
func (v ChannelSearch) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ChannelSearch) UnmarshalEasyJSON ¶ added in v0.6.1
func (v *ChannelSearch) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ChannelSearch) UnmarshalJSON ¶ added in v0.6.1
func (v *ChannelSearch) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ChannelSearchResult ¶ added in v0.6.1
type ChannelSearchResult struct { ChannelSearch Results []*storage.ChannelListItem }
func (ChannelSearchResult) MarshalEasyJSON ¶ added in v0.6.1
func (v ChannelSearchResult) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ChannelSearchResult) MarshalJSON ¶ added in v0.6.1
func (v ChannelSearchResult) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ChannelSearchResult) UnmarshalEasyJSON ¶ added in v0.6.1
func (v *ChannelSearchResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ChannelSearchResult) UnmarshalJSON ¶ added in v0.6.1
func (v *ChannelSearchResult) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ClientCert ¶
func (ClientCert) MarshalEasyJSON ¶
func (v ClientCert) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClientCert) MarshalJSON ¶
func (v ClientCert) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClientCert) UnmarshalEasyJSON ¶
func (v *ClientCert) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClientCert) UnmarshalJSON ¶
func (v *ClientCert) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ConnectionUpdate ¶
func (ConnectionUpdate) MarshalEasyJSON ¶
func (v ConnectionUpdate) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ConnectionUpdate) MarshalJSON ¶
func (v ConnectionUpdate) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ConnectionUpdate) UnmarshalEasyJSON ¶
func (v *ConnectionUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ConnectionUpdate) UnmarshalJSON ¶
func (v *ConnectionUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Dispatch ¶
type Dispatch struct { Store storage.Store SessionStore storage.SessionStore GetMessageStore func(*storage.User) (storage.MessageStore, error) GetMessageSearchProvider func(*storage.User) (storage.MessageSearchProvider, error) // contains filtered or unexported fields }
type Error ¶
func (Error) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Error) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Error) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Error) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Features ¶ added in v0.6.1
func (Features) MarshalEasyJSON ¶ added in v0.6.1
MarshalEasyJSON supports easyjson.Marshaler interface
func (Features) MarshalJSON ¶ added in v0.6.1
MarshalJSON supports json.Marshaler interface
func (*Features) UnmarshalEasyJSON ¶ added in v0.6.1
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Features) UnmarshalJSON ¶ added in v0.6.1
UnmarshalJSON supports json.Unmarshaler interface
type FetchMessages ¶
func (FetchMessages) MarshalEasyJSON ¶
func (v FetchMessages) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FetchMessages) MarshalJSON ¶
func (v FetchMessages) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FetchMessages) UnmarshalEasyJSON ¶
func (v *FetchMessages) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FetchMessages) UnmarshalJSON ¶
func (v *FetchMessages) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type IRCError ¶ added in v0.6.1
func (IRCError) MarshalEasyJSON ¶ added in v0.6.1
MarshalEasyJSON supports easyjson.Marshaler interface
func (IRCError) MarshalJSON ¶ added in v0.6.1
MarshalJSON supports json.Marshaler interface
func (*IRCError) UnmarshalEasyJSON ¶ added in v0.6.1
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*IRCError) UnmarshalJSON ¶ added in v0.6.1
UnmarshalJSON supports json.Unmarshaler interface
type Invite ¶
func (Invite) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Invite) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Invite) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Invite) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Join ¶
func (Join) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Join) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Join) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Join) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Kick ¶
func (Kick) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Kick) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Kick) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Kick) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type MOTD ¶
func (MOTD) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (MOTD) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*MOTD) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MOTD) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Message ¶
func (Message) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Message) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Message) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Messages ¶
type Messages struct { Server string To string Messages []storage.Message Prepend bool Next string }
func (Messages) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Messages) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Messages) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Messages) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Mode ¶
func (Mode) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Mode) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Mode) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Mode) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Nick ¶
type Nick struct { Server string Old string `json:"oldNick,omitempty"` New string `json:"newNick,omitempty"` }
func (Nick) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Nick) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Nick) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Nick) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type NickFail ¶
type NickFail struct {
Server string
}
func (NickFail) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (NickFail) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*NickFail) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NickFail) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Part ¶
func (Part) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Part) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Part) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Part) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Quit ¶
func (Quit) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Quit) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Quit) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Quit) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Raw ¶
func (Raw) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Raw) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Raw) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Raw) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ReconnectSettings ¶
func (ReconnectSettings) MarshalEasyJSON ¶
func (v ReconnectSettings) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ReconnectSettings) MarshalJSON ¶
func (v ReconnectSettings) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ReconnectSettings) UnmarshalEasyJSON ¶
func (v *ReconnectSettings) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ReconnectSettings) UnmarshalJSON ¶
func (v *ReconnectSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SearchRequest ¶
func (SearchRequest) MarshalEasyJSON ¶
func (v SearchRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchRequest) MarshalJSON ¶
func (v SearchRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SearchRequest) UnmarshalEasyJSON ¶
func (v *SearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchRequest) UnmarshalJSON ¶
func (v *SearchRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SearchResult ¶
func (SearchResult) MarshalEasyJSON ¶
func (v SearchResult) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchResult) MarshalJSON ¶
func (v SearchResult) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SearchResult) UnmarshalEasyJSON ¶
func (v *SearchResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchResult) UnmarshalJSON ¶
func (v *SearchResult) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Server ¶
type Server struct { *storage.Server Status ConnectionUpdate Features map[string]interface{} }
func (Server) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Server) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Server) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Server) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ServerName ¶
func (ServerName) MarshalEasyJSON ¶
func (v ServerName) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ServerName) MarshalJSON ¶
func (v ServerName) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ServerName) UnmarshalEasyJSON ¶
func (v *ServerName) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ServerName) UnmarshalJSON ¶
func (v *ServerName) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is the live state of a single user
type Topic ¶
func (Topic) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Topic) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Topic) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Topic) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Userlist ¶
func (Userlist) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Userlist) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Userlist) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Userlist) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type WSRequest ¶
type WSRequest struct { Type string Data easyjson.RawMessage }
func (WSRequest) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (WSRequest) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*WSRequest) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*WSRequest) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type WSResponse ¶
type WSResponse struct { Type string Data interface{} }
func (WSResponse) MarshalEasyJSON ¶
func (v WSResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (WSResponse) MarshalJSON ¶
func (v WSResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*WSResponse) UnmarshalEasyJSON ¶
func (v *WSResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*WSResponse) UnmarshalJSON ¶
func (v *WSResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Whois ¶
func (Whois) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Whois) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Whois) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Whois) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type WhoisReply ¶
type WhoisReply struct { Nick string Username string Host string Realname string Server string Channels []string }
func (WhoisReply) MarshalEasyJSON ¶
func (v WhoisReply) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (WhoisReply) MarshalJSON ¶
func (v WhoisReply) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*WhoisReply) UnmarshalEasyJSON ¶
func (v *WhoisReply) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*WhoisReply) UnmarshalJSON ¶
func (v *WhoisReply) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface