go_playflow

package module
v0.0.0-...-31120f9 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 6 Imported by: 0

README

go-playflow

A Go implementation of the Playflow API

Documentation

Index

Constants

View Source
const PlayFlowProductionAPI = "https://api.cloud.playflow.app"

Variables

View Source
var (
	ErrInvalidMethod = errors.New("invalid method")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTP *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string, url ...string) (*Client, error)

func (*Client) DeleteServerTag

func (c *Client) DeleteServerTag(serverTag string) (interface{}, error)

func (*Client) PerformanceMetrics

func (c *Client) PerformanceMetrics() ([]string, error)

func (*Client) RestartGameServer

func (c *Client) RestartGameServer(serverArguments, serverType, serverTag *string) (interface{}, error)

func (*Client) ServerLogs

func (c *Client) ServerLogs() ([]string, error)

func (*Client) ServerStatus

func (c *Client) ServerStatus(matchId string) (interface{}, error)

func (*Client) ServerTags

func (c *Client) ServerTags() (interface{}, error)

func (*Client) Servers

func (c *Client) Servers(includeLaunching ...bool) (interface{}, error)

func (*Client) StartGameServer

func (c *Client) StartGameServer(serverArguments, serverRegion, serverType, serverTag *string) (interface{}, error)

func (*Client) StopGameServer

func (c *Client) StopGameServer(matchId string) (interface{}, error)

func (*Client) UploadServerFiles

func (c *Client) UploadServerFiles(fileToUpload *[]byte, serverTag ...string) error

func (*Client) UploadVersion

func (c *Client) UploadVersion() (string, error)

type HTTPValidationError

type HTTPValidationError struct {
	ValidationError []struct {
		Loc  []any  `json:"loc"`
		Msg  string `json:"msg"`
		Type string `json:"type"`
	} `json:"detail"`
}

type ServerList

type ServerList struct {
	TotalServers int `json:"total_servers"`
	Servers      []struct {
	}
}

type ServerTags

type ServerTags struct {
}

Jump to

Keyboard shortcuts

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