system

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleInfo

func HandleInfo(system *core.System) http.HandlerFunc

ShowSystemInfo godoc @Summary Show system info @Description @Tags system @Accept json @Produce json @Success 200 {object} InfoResponse @Router /info [get]

func HandleTime

func HandleTime() http.HandlerFunc

ShowSystemTime godoc @Summary Show server time @Description @Tags system @Accept json @Produce json @Success 200 {object} TimeResponse @Router /time [get]

Types

type InfoResponse

type InfoResponse struct {
	// oauth client id
	OauthClientID string `json:"oauth_client_id,omitempty" format:"uuid"`
	// multisig members
	Members []string `json:"members,omitempty"`
	// multisig threshold
	Threshold uint8  `json:"threshold,omitempty"`
	PublicKey string `json:"public_key,omitempty"`
}

type TimeResponse

type TimeResponse struct {
	ISO   string `json:"iso,omitempty"`
	Epoch int64  `json:"epoch,omitempty"`
}

Jump to

Keyboard shortcuts

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