server

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCMTypeGithub SCMType  = "github"
	ChatTypeSlack ChatType = "slack"
)

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(c *RouterConfig) *gin.Engine

Types

type ChatConfig

type ChatConfig struct {
	Type         ChatType
	ClientID     string
	ClientSecret string
	BotScopes    []string
	UserScopes   []string
}

type ChatType

type ChatType string

type RouterConfig

type RouterConfig struct {
	*ServerConfig
	*SCMConfig
	*ChatConfig
	Interactor
}

type SCMConfig

type SCMConfig struct {
	Type         SCMType
	ClientID     string
	ClientSecret string
	Scopes       []string
}

type SCMType

type SCMType string

type ServerConfig

type ServerConfig struct {
	Host       string
	Proto      string
	ProxyHost  string
	ProxyProto string

	WebhookSecret string

	PrometheusEnabled    bool
	PrometheusAuthSecret string
}

Directories

Path Synopsis
api
shared/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
v1/repos/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
v1/sync/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
v1/users/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL