api

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APITransport

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

func (*APITransport) Request

func (xp *APITransport) Request(ctx context.Context, method string, url string, body any) ([]byte, error)

type Client

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

func NewClient added in v0.7.0

func NewClient(endpoint, authKey string, httpClient *http.Client) *Client

func (*Client) CreateWorldDownloadURL

func (c *Client) CreateWorldDownloadURL(ctx context.Context, worldID string) (*web.CreateWorldDownloadURLResponse, error)

func (*Client) CreateWorldUploadURL

func (c *Client) CreateWorldUploadURL(ctx context.Context, worldName string) (*web.CreateWorldUploadURLResponse, error)

func (*Client) GetLatestWorldID

func (c *Client) GetLatestWorldID(ctx context.Context, worldName string) (*web.GetLatestWorldIDResponse, error)

func (*Client) PollAction

func (c *Client) PollAction(ctx context.Context) (*runner.Action, error)

func (*Client) PostStatus

func (c *Client) PostStatus(ctx context.Context, statuses []byte) error

type TransportError

type TransportError struct {
	Code entity.ErrorCode
}

func (*TransportError) Error

func (e *TransportError) Error() string

Jump to

Keyboard shortcuts

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