Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DB dbConfig Telegram bot.Config Template string Log logConfig BuntDB buntDBConfig Telegraph telegraphConfig }
Config is the configuration used in viper
var DefaultConfig Config = Config{ DB: dbConfig{Type: "sqlite", Path: "portier.db", Username: "portier", Password: "portier", Host: "localhost", Port: 3306, DBName: "portier"}, Telegram: bot.Config{Token: ""}, Template: "", Log: logConfig{Mode: "", Path: ""}, BuntDB: buntDBConfig{Path: "feed.db"}, Telegraph: telegraphConfig{ Account: 1, ShortName: "Portier", Author: "Portier", AuthorURL: "https://github.com/TechMinerApps/portier", }, }
DefaultConfig is the default config of Portier
type Portier ¶
type Portier struct {
// contains filtered or unexported fields
}
Portier is the main app
func NewPortier ¶
func NewPortier() *Portier
NewPortier create a new portier object does not need config as parameter since this is the main object
func (*Portier) Start ¶
func (p *Portier) Start()
Start is used to start portier instance do not return error since error handling show be done within portier object
Click to show internal directories.
Click to hide internal directories.