api

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 9 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"`
	Login        LoginConfig  `json:"login"`
	Discord      Discord      `json:"discord"`
	Links        Links        `json:"links"`
	FeatureGates FeatureGates `json:"featureGates"`
}

type Discord

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

type FeatureGates added in v0.8.21

type FeatureGates struct {
}
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 Params added in v0.8.21

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger    *zap.Logger
	Config    *config.Config
	AppConfig appconfig.IConfig
}

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(p Params) *Routes

func (*Routes) RegisterHTTP added in v0.8.20

func (r *Routes) RegisterHTTP(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