api

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PingResponse = Ping{
	Message: "Pong",
}

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	Version   string      `json:"version"`
	SentryDSN string      `json:"sentryDSN"`
	Login     LoginConfig `json:"login"`
	Discord   *Discord    `json:"discord"`
}

type Discord

type Discord struct {
	BotInviteURL string `json:"botInviteURL"`
}

type LoginConfig

type LoginConfig struct {
	SignupEnabled bool              `json:"signupEnabled"`
	Providers     []*ProviderConfig `json:"providers"`
}

type Ping

type Ping struct {
	Message string `json:"message"`
}

type ProviderConfig

type ProviderConfig struct {
	Name  string `json:"name"`
	Label string `json:"label"`
}

type Routes

type Routes struct {
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, cfg *config.Config) *Routes

func (*Routes) Register

func (r *Routes) Register(e *gin.Engine, oa2 *oauth2.OAuth2)

type Version added in v0.8.2

type Version struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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