server

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 37 Imported by: 1

Documentation

Index

Constants

View Source
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

type Away struct {
	Server  string
	Message string
}

func (Away) MarshalEasyJSON

func (v Away) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Away) MarshalJSON

func (v Away) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Away) UnmarshalEasyJSON

func (v *Away) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Away) UnmarshalJSON

func (v *Away) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ChannelForward added in v0.6.1

type ChannelForward struct {
	Server string
	Old    string
	New    string
}

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

type ChannelSearch struct {
	Server string
	Q      string
	Start  int
}

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

type ClientCert struct {
	Cert string
	Key  string
}

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

type ConnectionUpdate struct {
	Server    string
	Connected bool
	Error     string
	ErrorType string
}

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
}

func New added in v0.6.1

func New(cfg *config.Config) *Dispatch

func (*Dispatch) Config added in v0.6.1

func (d *Dispatch) Config() *config.Config

func (*Dispatch) Run

func (d *Dispatch) Run()

func (*Dispatch) ServeHTTP

func (d *Dispatch) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Dispatch) SetConfig added in v0.6.1

func (d *Dispatch) SetConfig(cfg *config.Config)

type Error

type Error struct {
	Server  string
	Message string
}

func (Error) MarshalEasyJSON

func (v Error) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Error) MarshalJSON

func (v Error) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Error) UnmarshalEasyJSON

func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Error) UnmarshalJSON

func (v *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Features added in v0.6.1

type Features struct {
	Server   string
	Features map[string]interface{}
}

func (Features) MarshalEasyJSON added in v0.6.1

func (v Features) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Features) MarshalJSON added in v0.6.1

func (v Features) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Features) UnmarshalEasyJSON added in v0.6.1

func (v *Features) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Features) UnmarshalJSON added in v0.6.1

func (v *Features) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FetchMessages

type FetchMessages struct {
	Server  string
	Channel string
	Next    string
}

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 File

type File struct {
	Data         []byte
	Length       string
	GzipData     []byte
	GzipLength   string
	Hash         string
	ContentType  string
	CacheControl string
	Compressed   bool
}

type IRCError added in v0.6.1

type IRCError struct {
	Server  string
	Target  string
	Message string
}

func (IRCError) MarshalEasyJSON added in v0.6.1

func (v IRCError) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IRCError) MarshalJSON added in v0.6.1

func (v IRCError) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IRCError) UnmarshalEasyJSON added in v0.6.1

func (v *IRCError) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IRCError) UnmarshalJSON added in v0.6.1

func (v *IRCError) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Invite

type Invite struct {
	Server  string
	Channel string
	User    string
}

func (Invite) MarshalEasyJSON

func (v Invite) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Invite) MarshalJSON

func (v Invite) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Invite) UnmarshalEasyJSON

func (v *Invite) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Invite) UnmarshalJSON

func (v *Invite) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Join

type Join struct {
	Server   string
	User     string
	Channels []string
}

func (Join) MarshalEasyJSON

func (v Join) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Join) MarshalJSON

func (v Join) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Join) UnmarshalEasyJSON

func (v *Join) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Join) UnmarshalJSON

func (v *Join) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Kick

type Kick struct {
	Server  string
	Channel string
	User    string
}

func (Kick) MarshalEasyJSON

func (v Kick) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Kick) MarshalJSON

func (v Kick) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Kick) UnmarshalEasyJSON

func (v *Kick) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Kick) UnmarshalJSON

func (v *Kick) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MOTD

type MOTD struct {
	Server  string
	Title   string
	Content []string
}

func (MOTD) MarshalEasyJSON

func (v MOTD) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MOTD) MarshalJSON

func (v MOTD) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MOTD) UnmarshalEasyJSON

func (v *MOTD) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MOTD) UnmarshalJSON

func (v *MOTD) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Message

type Message struct {
	ID      string
	Server  string
	From    string
	To      string
	Content string
	Type    string
}

func (Message) MarshalEasyJSON

func (v Message) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Message) MarshalJSON

func (v Message) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Message) UnmarshalEasyJSON

func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Message) UnmarshalJSON

func (v *Message) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Messages

type Messages struct {
	Server   string
	To       string
	Messages []storage.Message
	Prepend  bool
	Next     string
}

func (Messages) MarshalEasyJSON

func (v Messages) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Messages) MarshalJSON

func (v Messages) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Messages) UnmarshalEasyJSON

func (v *Messages) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Messages) UnmarshalJSON

func (v *Messages) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Mode

type Mode struct {
	Server  string
	Channel string
	User    string
	Add     string
	Remove  string
}

func (Mode) MarshalEasyJSON

func (v Mode) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Mode) MarshalJSON

func (v Mode) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Mode) UnmarshalEasyJSON

func (v *Mode) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Mode) UnmarshalJSON

func (v *Mode) UnmarshalJSON(data []byte) error

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

func (v Nick) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Nick) MarshalJSON

func (v Nick) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Nick) UnmarshalEasyJSON

func (v *Nick) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Nick) UnmarshalJSON

func (v *Nick) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type NickFail

type NickFail struct {
	Server string
}

func (NickFail) MarshalEasyJSON

func (v NickFail) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (NickFail) MarshalJSON

func (v NickFail) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*NickFail) UnmarshalEasyJSON

func (v *NickFail) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*NickFail) UnmarshalJSON

func (v *NickFail) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Part

type Part struct {
	Server   string
	User     string
	Channel  string
	Channels []string
	Reason   string
}

func (Part) MarshalEasyJSON

func (v Part) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Part) MarshalJSON

func (v Part) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Part) UnmarshalEasyJSON

func (v *Part) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Part) UnmarshalJSON

func (v *Part) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Quit

type Quit struct {
	Server string
	User   string
	Reason string
}

func (Quit) MarshalEasyJSON

func (v Quit) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Quit) MarshalJSON

func (v Quit) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Quit) UnmarshalEasyJSON

func (v *Quit) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Quit) UnmarshalJSON

func (v *Quit) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Raw

type Raw struct {
	Server  string
	Message string
}

func (Raw) MarshalEasyJSON

func (v Raw) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Raw) MarshalJSON

func (v Raw) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Raw) UnmarshalEasyJSON

func (v *Raw) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Raw) UnmarshalJSON

func (v *Raw) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReconnectSettings

type ReconnectSettings struct {
	Server     string
	SkipVerify bool
}

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

type SearchRequest struct {
	Server  string
	Channel string
	Phrase  string
}

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

type SearchResult struct {
	Server  string
	Channel string
	Results []storage.Message
}

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

func (v Server) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Server) MarshalJSON

func (v Server) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Server) UnmarshalEasyJSON

func (v *Server) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Server) UnmarshalJSON

func (v *Server) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServerName

type ServerName struct {
	Server string
	Name   string
}

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

func NewState

func NewState(user *storage.User, srv *Dispatch) *State

func (*State) Bool added in v0.6.1

func (s *State) Bool(key string) bool

func (*State) Get added in v0.6.1

func (s *State) Get(key string) interface{}

func (*State) Int added in v0.6.1

func (s *State) Int(key string) int

func (*State) Set added in v0.6.1

func (s *State) Set(key string, value interface{})

func (*State) String added in v0.6.1

func (s *State) String(key string) string

type Topic

type Topic struct {
	Server  string
	Channel string
	Topic   string
	Nick    string
}

func (Topic) MarshalEasyJSON

func (v Topic) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Topic) MarshalJSON

func (v Topic) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Topic) UnmarshalEasyJSON

func (v *Topic) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Topic) UnmarshalJSON

func (v *Topic) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Userlist

type Userlist struct {
	Server  string
	Channel string
	Users   []string
}

func (Userlist) MarshalEasyJSON

func (v Userlist) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Userlist) MarshalJSON

func (v Userlist) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Userlist) UnmarshalEasyJSON

func (v *Userlist) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Userlist) UnmarshalJSON

func (v *Userlist) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WSRequest

type WSRequest struct {
	Type string
	Data easyjson.RawMessage
}

func (WSRequest) MarshalEasyJSON

func (v WSRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WSRequest) MarshalJSON

func (v WSRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WSRequest) UnmarshalEasyJSON

func (v *WSRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WSRequest) UnmarshalJSON

func (v *WSRequest) UnmarshalJSON(data []byte) error

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

type Whois struct {
	Server string
	User   string
}

func (Whois) MarshalEasyJSON

func (v Whois) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Whois) MarshalJSON

func (v Whois) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Whois) UnmarshalEasyJSON

func (v *Whois) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Whois) UnmarshalJSON

func (v *Whois) UnmarshalJSON(data []byte) error

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

Jump to

Keyboard shortcuts

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