Documentation ¶
Overview ¶
Package models for mongo struct and toml file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTemplate ¶
func CreateTemplate()
CreateTemplate function to create a base config.toml file
Types ¶
type APIServerinfo ¶
APIServerinfo struct to configure statusAS-api
type Service ¶
type Service struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Name string `bson:"name" json:"name"` Description string `bson:"description" json:"description"` Link string `bson:"link" json:"link"` Status int `bson:"status" json:"status"` GroupID int `bson:"group_id" json:"group_id"` Messages []string `bson:"messages" json:"messages"` CreatedAt time.Time `bson:"created_at" json:"created_at"` UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` }
Service struct
type Tomlconfig ¶
type Tomlconfig struct {
APIServer APIServerinfo
}
Tomlconfig struct to read toml file components.
Click to show internal directories.
Click to hide internal directories.