g2i/g2i/config.go
2019-03-16 16:26:56 +03:00

41 lines
1.0 KiB
Go

package g2i
import (
"github.com/boltdb/bolt"
)
type Config struct {
Data Data `json:"data"`
IDEC IDEC `json:"idec"`
Github Github `json:"github"`
}
type Data struct {
Path string `json:"path"`
db *bolt.DB
}
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"`
CommentTemplatePath string `json:"comment_template_path"`
TopPostID string `json:"top_post_id"`
MessageSubg string `json:"message_subg"`
}
type Github struct {
RepoOwner string `json:"repo_owner"`
Repo string `json:"repo"`
Token string `json:"token"`
WatchedEventTypes []string `json:"watched_event_types"`
}