server

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNetworkKey

func GenerateNetworkKey(ctx *gin.Context)

GenerateNetworkKey godoc

@Tags			server
@Summary		Generate a new authentication key
@Description	Generate a new authentication key
@Produce		json
@Success		200	{object}	NetworkKey
@Router			/server/network-key [post]

@id				GenerateNetworkKey

func GetConfig

func GetConfig(ctx *gin.Context)

GetConfig godoc

@Tags			server
@Summary		Get the server configuration
@Description	Get the server configuration
@Produce		json
@Success		200	{object}	ServerConfig
@Router			/server/config [get]

@id				GetConfig

func SetConfig

func SetConfig(ctx *gin.Context)

SetConfig godoc

@Tags			server
@Summary		Set the server configuration
@Description	Set the server configuration
@Accept			json
@Produce		json
@Param			config	body		ServerConfig	true	"Server configuration"
@Success		200		{object}	ServerConfig
@Router			/server/config [post]

@id				SetConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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