acserver_api

package
v0.0.0-...-1eee0f7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACServer

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

func CreateACServer

func CreateACServer(config *config.Config) ACServer

func (*ACServer) GetTools

func (svr *ACServer) GetTools() []ToolStatusResponse

func (*ACServer) GetUserRecordForCard

func (svr *ACServer) GetUserRecordForCard(card string) *UserCardResponse

type ToolStatusResponse

type ToolStatusResponse struct {
	Id            int    `json:"id"`
	Name          string `json:"name"`
	Status        string `json:"status"`
	StatusMessage string `json:"status_message"`
	InUse         string `json:"in_use"`
	Type          string `json:"type"`
	MqttName      string `json:"mqtt_name"`
}

type UserCardResponse

type UserCardResponse struct {
	Id         string `json:"id"`
	UserName   string `json:"user_name"`
	GlaDOSFile string `json:"gladosfile"`
	Subscribed bool   `json:"subscribed"`
}

{"user_name": "A User", "gladosfile": "", "subscribed": true, "id": "HS12345"}

type UserToolSummaryResponse

type UserToolSummaryResponse struct {
	Name          string `json:"name"`
	Status        string `json:"status"`
	StatusMessage string `json:"status_message"`
	InUse         string `json:"in_use"`
	Permission    string `json:"permission"`
	Type          string `json:"type"`
}

Jump to

Keyboard shortcuts

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