api

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(ctx context.Context, client *Depot) context.Context

Types

type Depot

type Depot struct {
	BaseURL string
	// contains filtered or unexported fields
}

func GetContextClient

func GetContextClient(ctx context.Context) *Depot

func NewDepot

func NewDepot(baseURL string, token string) *Depot

func NewDepotFromEnv

func NewDepotFromEnv(token string) (*Depot, error)

func (*Depot) Example

func (d *Depot) Example(id string) error

type ErrorResponse

type ErrorResponse struct {
	OK    bool   `json:"ok"`
	Error string `json:"error"`
}

type ExampleResponse

type ExampleResponse struct {
	OK bool `json:"ok"`
}

Jump to

Keyboard shortcuts

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