Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Zerologger zerolog.Logger
Functions ¶
func CreateLogger ¶
func LoadConfig ¶
func LoadConfig()
Types ¶
type ConfigTOML ¶
type ConfigTOML struct { Name string `toml:"Name"` BuildTime string `toml:"BuildTime"` Server struct { Port int `toml:"Port"` LogLevel string `toml:"LogLevel"` LogIsJSONFormat bool `toml:"LogIsJsonFormat"` WebhookSecretKey string `toml:"WebhookSecretKey"` } `toml:"server"` Action struct { API struct { Enable bool `toml:"Enable"` Mothod string `toml:"Mothod"` Auth string `toml:"Auth"` URL string `toml:"URL"` } `toml:"api"` Target []struct { RepoName string `toml:"RepoName"` TargetID int `toml:"TargetID"` RequestBody string `toml:"RequestBody"` } `toml:"target"` } `toml:"action"` }
var Conf ConfigTOML
type GAERouter ¶
type GAERouter struct {
// contains filtered or unexported fields
}
func NewGAERouter ¶
func NewGAERouter(gwh *GithubWebhook) *GAERouter
type GinRouter ¶
type GinRouter struct {
// contains filtered or unexported fields
}
func NewGinRouter ¶
func NewGinRouter(gwh *GithubWebhook) *GinRouter
type GithubWebhook ¶
type GithubWebhook struct {
// contains filtered or unexported fields
}
func NewGithubWebhook ¶
func NewGithubWebhook(sender SenderInterface) *GithubWebhook
type SenderInterface ¶
type SenderInterface interface {
SendMessage(msg string)
}
Click to show internal directories.
Click to hide internal directories.