api

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 5 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"`
	SentryEnv string      `json:"sentryEnv"`
	Login     LoginConfig `json:"login"`
	Discord   *Discord    `json:"discord"`
	Links     Links       `json:"links"`
}

type Discord

type Discord struct {
	BotInviteURL string `json:"botInviteURL"`
}
type Links struct {
	Imprint       *string `json:"imprint"`
	PrivacyPolicy *string `json:"privacyPolicy"`
}

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)

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