Documentation ¶
Index ¶
- Constants
- type Plugin
- type Postgres
- func (pg *Postgres) AddPlugin(p *Plugin) (err error)
- func (pg *Postgres) Close() error
- func (pg *Postgres) DeleteBySource(source string) (err error)
- func (pg *Postgres) FindPlugin(id string) (p *Plugin, err error)
- func (pg *Postgres) FindPlugins() (plugins []*Plugin, err error)
- func (pg *Postgres) UpdatePlugin(p *Plugin) (err error)
- type Store
- type Storm
Constants ¶
View Source
const ( API = "api" Consul = "consul" ETCD = "etcd" File = "file" Zookeeper = "zookeeper" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { ID string `json:"id" db:"id" storm:"id"` Name string `json:"name" db:"name"` Order int `json:"order" db:"order"` Host string `json:"host" db:"host"` Path string `json:"path" db:"path"` Config types.JSONText `json:"config" db:"config"` Source string `json:"source,omitempty" db:"source"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` Raw plugin.RawPlugin `json:"-" db:"-"` Unique string `json:"-" db:"-" storm:"unique"` }
type Postgres ¶
func NewPostgres ¶
func (*Postgres) DeleteBySource ¶
func (*Postgres) FindPlugins ¶
func (*Postgres) UpdatePlugin ¶
type Storm ¶
func (*Storm) DeleteBySource ¶
func (*Storm) FindPlugins ¶
func (*Storm) UpdatePlugin ¶
Click to show internal directories.
Click to hide internal directories.