Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyService ¶
type EmptyService struct {
// contains filtered or unexported fields
}
func (*EmptyService) Run ¶
func (service *EmptyService) Run() Result
type HTTPService ¶
type HTTPService struct {
// contains filtered or unexported fields
}
func (*HTTPService) Run ¶
func (service *HTTPService) Run() (res Result)
type JsonDB ¶
type JsonDB struct {
// contains filtered or unexported fields
}
func (*JsonDB) GetServices ¶
func (*JsonDB) SaveResult ¶
type MongoService ¶
type MongoService struct {
// contains filtered or unexported fields
}
func (*MongoService) Run ¶
func (service *MongoService) Run() (res Result)
type PostgresDB ¶
type PostgresDB struct {
// contains filtered or unexported fields
}
func (*PostgresDB) Close ¶
func (db *PostgresDB) Close()
func (*PostgresDB) Connect ¶
func (db *PostgresDB) Connect()
func (*PostgresDB) GetServices ¶
func (db *PostgresDB) GetServices() []Service
func (*PostgresDB) SaveResult ¶
func (db *PostgresDB) SaveResult(res Result)
type RedisService ¶
type RedisService struct {
// contains filtered or unexported fields
}
func (*RedisService) Run ¶
func (service *RedisService) Run() (res Result)
type SQLService ¶
type SQLService struct {
// contains filtered or unexported fields
}
func (*SQLService) Run ¶
func (service *SQLService) Run() (res Result)
type Service ¶
type Service struct { Id int64 `mapstructure:"id" json:"id" gorm:"primaryKey"` Name string `mapstructure:"name" json:"name"` Url string `mapstructure:"url" json:"url"` Type ServiceType `mapstructure:"type" json:"type"` Cron string `mapstructure:"cron" json:"cron"` Data ServiceData `mapstructure:"data" json:"data"` }
type ServiceData ¶
type ServiceData map[string]interface{}
func (*ServiceData) Scan ¶
func (a *ServiceData) Scan(value interface{}) error
type ServiceType ¶
type ServiceType string
const ( HTTP ServiceType = "http" Redis ServiceType = "redis" SQL ServiceType = "sql" Mongo ServiceType = "mongo" Empty ServiceType = "" )
Click to show internal directories.
Click to hide internal directories.