compute

package
v0.0.0-...-6530c03 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(addr string) *API

func (*API) ServeHTTP

func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.HandlerFunc interface.

func (*API) Stage

func (a *API) Stage(newStage *stageMeta) error

type Client

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

Client is a remote Instance that sends everything to the --server specified on the command line. The client handles client-server communication, and it wraps a Local that runs stages locally.

func NewClient

func NewClient(name, addr string) *Client

func (*Client) Run

func (c *Client) Run(ctxFinch context.Context) error

type Server

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

Server coordinates instances: the local and any remotes. Server implements Compute so server.Server (the Finch core server) can run as a client or server.

func NewServer

func NewServer(name, addr string, test bool) *Server

func (*Server) Run

func (s *Server) Run(ctxFinch context.Context, stages []config.Stage) error

Jump to

Keyboard shortcuts

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