server

package
v0.0.0-...-7af50d5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnonymousSessionExpiration = 24 * time.Hour
)

Variables

This section is empty.

Functions

func IndexTemplate

func IndexTemplate(w io.Writer, data *indexData, cssPath, jsPath string) error

func Run

func Run()

Types

type Away

type Away struct {
	Server  string `json:"server"`
	Message string `json:"message"`
}

type Chat

type Chat struct {
	Server  string `json:"server"`
	From    string `json:"from"`
	To      string `json:"to,omitempty"`
	Message string `json:"message"`
}

type ClientCert

type ClientCert struct {
	Cert []byte `json:"cert"`
	Key  []byte `json:"key"`
}

type Connect

type Connect struct {
	Name     string `json:"name"`
	Server   string `json:"server"`
	TLS      bool   `json:"tls"`
	Password string `json:"password"`
	Nick     string `json:"nick"`
	Username string `json:"username"`
	Realname string `json:"realname"`
}

type Error

type Error struct {
	Server  string `json:"server"`
	Message string `json:"message"`
}

type File

type File struct {
	Path         string
	Asset        string
	ContentType  string
	CacheControl string
	Gzip         bool
}

type Invite

type Invite struct {
	Server  string `json:"server"`
	Channel string `json:"channel"`
	User    string `json:"user"`
}

type Join

type Join struct {
	Server   string   `json:"server"`
	User     string   `json:"user"`
	Channels []string `json:"channels"`
}

type Kick

type Kick struct {
	Server  string `json:"server"`
	Channel string `json:"channel"`
	User    string `json:"user"`
}

type MOTD

type MOTD struct {
	Server  string   `json:"server"`
	Title   string   `json:"title"`
	Content []string `json:"content"`
}

type Mode

type Mode struct {
	Server  string `json:"server"`
	Channel string `json:"channel"`
	User    string `json:"user"`
	Add     string `json:"add"`
	Remove  string `json:"remove"`
}

type Nick

type Nick struct {
	Server   string   `json:"server"`
	Old      string   `json:"old"`
	New      string   `json:"new"`
	Channels []string `json:"channels"`
}

type Part

type Part struct {
	Join
	Reason string `json:"reason,omitempty"`
}

type Quit

type Quit struct {
	Server   string   `json:"server"`
	User     string   `json:"user"`
	Reason   string   `json:"reason,omitempty"`
	Channels []string `json:"channels"`
}

type Raw

type Raw struct {
	Server  string `json:"server"`
	Message string `json:"message"`
}

type SearchRequest

type SearchRequest struct {
	Server  string `json:"server"`
	Channel string `json:"channel"`
	Phrase  string `json:"phrase"`
}

type SearchResult

type SearchResult struct {
	Server  string            `json:"server"`
	Channel string            `json:"channel"`
	Results []storage.Message `json:"results"`
}

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(user *storage.User) *Session

type Topic

type Topic struct {
	Server  string `json:"server"`
	Channel string `json:"channel"`
	Topic   string `json:"topic"`
}

type Userlist

type Userlist struct {
	Server  string   `json:"server"`
	Channel string   `json:"channel"`
	Users   []string `json:"users"`
}

type WSRequest

type WSRequest struct {
	Type string          `json:"type"`
	Data json.RawMessage `json:"data"`
}

type WSResponse

type WSResponse struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type Whois

type Whois struct {
	Server string `json:"server"`
	User   string `json:"user"`
}

type WhoisReply

type WhoisReply struct {
	Nick     string   `json:"nick"`
	Username string   `json:"username"`
	Host     string   `json:"host"`
	Realname string   `json:"realname"`
	Server   string   `json:"server"`
	Channels []string `json:"channels"`
}

Jump to

Keyboard shortcuts

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