launcher

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureRouter

func ConfigureRouter(r *gin.Engine)

func GetInfo

func GetInfo() (interface{}, error)

func StartLauncherRegistry

func StartLauncherRegistry()

func UpdateBackup

func UpdateBackup(settings BackupSettings) (bool, error)

func WsHandler

func WsHandler(w http.ResponseWriter, r *http.Request)

Types

type BackupSettings

type BackupSettings struct {
	Location string
}

type Info

type Info struct {
	Test string `json:"test"`
}

type Launcher

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

func (*Launcher) GetInfo

func (t *Launcher) GetInfo() (*json.RawMessage, error)

func (*Launcher) Listen

func (t *Launcher) Listen()

func (*Launcher) UpdateBackup

func (t *Launcher) UpdateBackup(settings BackupSettings) (bool, error)

type LauncherRequest

type LauncherRequest struct {
	Launcher *Launcher
	Request  *Request
}

type Request

type Request struct {
	Id     uint16   `json:"id"`
	Method string   `json:"method"`
	Params []string `json:"params"`
}

type RequestHandler

type RequestHandler interface {
	HandleResponse(resp *Response)
}

type Response

type Response struct {
	Id     uint16      `json:"id"`
	Result string      `json:"result"`
	Error  interface{} `json:"error"`
}

Jump to

Keyboard shortcuts

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