client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UUIDHeader    = "x-runner-uuid"
	TokenHeader   = "x-runner-token"
	VersionHeader = "x-runner-version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	pingv1connect.PingServiceClient
	runnerv1connect.RunnerServiceClient
	Address() string
	Insecure() bool
}

A Client manages communication with the runner.

type HTTPClient

type HTTPClient struct {
	pingv1connect.PingServiceClient
	runnerv1connect.RunnerServiceClient
	// contains filtered or unexported fields
}

An HTTPClient manages communication with the runner API.

func New

func New(endpoint string, insecure bool, uuid, token, version string, opts ...connect.ClientOption) *HTTPClient

New returns a new runner client.

func (*HTTPClient) Address

func (c *HTTPClient) Address() string

func (*HTTPClient) Insecure

func (c *HTTPClient) Insecure() bool

Jump to

Keyboard shortcuts

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