types

package
v0.0.0-...-3bc5291 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Domain     string
	Addr       string
	WsAddr     string
	WsKey      string
	Ws         bool
	Datasource *Datasource
	EditChan   string
	Dev        bool
	Mail       bool
	CsrfKey    string
	HitsDbAddr string
}

type Conn

type Conn struct {
	Addr      string
	Timestamp string
	User      string
	Token     string
}

type Datasource

type Datasource struct {
	Name string
	Type string
	Path string
	User string
	Pwd  string
	Db   string
}

type Hit

type Hit struct {
	gorm.Model
	Ip            string `json:ip`
	Path          string `json:path`
	Host          string `json:host`
	Ua            string `json:ua`
	Lang          string `json:lang`
	Length        string `json:length`
	Status        int    `json:status`
	City          string
	Subdivision   string
	CountryName   string
	CountryCode   string
	Timezone      string
	Latitude      float64
	Longitude     float64
	IsProxy       bool
	IsSatProvider bool
}

type HttpServer

type HttpServer struct {
	Domain   string
	Addr     string
	Instance *http.Server
	State    *fsm.FSM
}

type Page

type Page struct {
	Domain   string
	Url      string
	Title    string
	Content  template.HTML
	Conn     *Conn
	EditChan string
	Token    string
}

Jump to

Keyboard shortcuts

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