g2i/g2i/config.go

41 lines
1.0 KiB
Go
Raw Normal View History

2019-03-14 18:42:15 +03:00
package g2i
2019-03-15 16:56:16 +03:00
import (
"github.com/boltdb/bolt"
)
2019-03-14 18:42:15 +03:00
type Config struct {
Data Data `json:"data"`
IDEC IDEC `json:"idec"`
Github Github `json:"github"`
}
type Data struct {
Path string `json:"path"`
2019-03-15 16:56:16 +03:00
db *bolt.DB
2019-03-14 18:42:15 +03:00
}
type Fetch struct {
Echoes []string `json:"echoes"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
type IDEC struct {
Fetch Fetch `json:"fetch"`
Authstring string `json:"authstring"`
NodeURL string `json:"node_url"`
HelloMessage bool `json:"hello_message"`
HelloMessageTemplatePath string `json:"hello_message_template_path"`
2019-03-16 16:24:35 +03:00
CommentTemplatePath string `json:"comment_template_path"`
2019-03-14 18:42:15 +03:00
TopPostID string `json:"top_post_id"`
2019-03-16 16:24:35 +03:00
MessageSubg string `json:"message_subg"`
2019-03-14 18:42:15 +03:00
}
type Github struct {
RepoOwner string `json:"repo_owner"`
Repo string `json:"repo"`
Token string `json:"token"`
WatchedEventTypes []string `json:"watched_event_types"`
}