endpoints

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

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

func New

func New(options ...Option) *Endpoints

New return an new Endpoints .

func (*Endpoints) CollectLogs

func (e *Endpoints) CollectLogs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateRunnerTask

func (e *Endpoints) CreateRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) FetchRunnerTask

func (e *Endpoints) FetchRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetRunnerTask

func (e *Endpoints) GetRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) Info

func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

Info used for health check.

func (*Endpoints) Routes

func (e *Endpoints) Routes() []httpserver.Endpoint

Routes return all endpoints methods, i.e. routes.

func (*Endpoints) UpdateRunnerTask

func (e *Endpoints) UpdateRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

type Option

type Option func(*Endpoints)

func WithBundle

func WithBundle(bundle *bundle.Bundle) Option

WithBundle set bundle .

func WithRunnerTask

func WithRunnerTask(runnerTask *runnertask.RunnerTask) Option

WithRunnerTask set runnerTask .

Jump to

Keyboard shortcuts

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