Documentation
¶
Index ¶
- func AddPakreq(pakreq Pakreq) bool
- func ExportToFile()
- func IsPakreq(text string) bool
- func IsSecurity(text string) bool
- func IsURL(text string) bool
- func IsUpdate(text string) bool
- func PakreqExists(pakreq Pakreq) bool
- func PakreqToArray(text string) []string
- func ReadFromFile()
- type Config
- type Pakreq
- type Security
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportToFile ¶
func ExportToFile()
ExportToFile exports all current pakreqs and udpates to a config.toml
func PakreqExists ¶
PakreqExists returns if the pakreq already exists in the database
func PakreqToArray ¶
PakreqToArray returns a slice of string containing package names
Types ¶
type Config ¶
type Config struct {
TgBotKey string
GhToken string
Version string
RepoURL string
MembersID []string
CurPakreqs []Pakreq
CurUpdates []Update
ClosedPakreqs []Pakreq
ClosedUpdates []Update
}
Config struct, stores in file
var CurConfig Config
CurConfig Current Config
type Pakreq ¶
type Pakreq struct {
PkgName string
PkgURL string
PkgDesc string
Author string
IssueURL string
OpenTime time.Time
CloseTime time.Time
}
Pakreq stores a #pakreq
Click to show internal directories.
Click to hide internal directories.