Documentation
¶
Index ¶
Constants ¶
View Source
const ServerLogFile = "server.log"
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"`
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 GinRouter ¶
type GinRouter struct {
// contains filtered or unexported fields
}
func NewGinRouter ¶
func NewGinRouter(gwh *GithubWebhook, allowCORS bool) *GinRouter
func (*GinRouter) SetCommonResponseHeader ¶ added in v0.1.7
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.