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"`
LogFile string `toml:"LogFile"`
LogLevel string `toml:"LogLevel"`
LogIsJSONFormat bool `toml:"LogIsJsonFormat"`
WebhookSecretKey string `toml:"WebhookSecretKey"`
} `toml:"server"`
Hook []struct {
RepoName string `toml:"RepoName"`
} `toml:"hook"`
Action struct {
Enable bool `toml:"Enable"`
Method string `toml:"Method"`
Auth string `toml:"Auth"`
URL string `toml:"URL"`
} `toml:"action"`
}
var Conf ConfigTOML
type GAERouter ¶
type GAERouter struct {
// contains filtered or unexported fields
}
func NewGAERouter ¶
func NewGAERouter(gwh *GithubWebhook, allowCORS bool) *GAERouter
func (*GAERouter) SetCommonResponseHeader ¶ added in v0.1.7
func (gae *GAERouter) SetCommonResponseHeader(w http.ResponseWriter)
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.