Help us shape the future of Go! Take the 2026 Go Developer Survey

httpapi

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Operations = []string{"connections", "repos", "refs", "commits", "files", "pipelines", "pipeline-executions"}

Functions

func AddOpenAPI

func AddOpenAPI(spec *rpc.OpenAPISpec, prefix string)

func ErrorStatus

func ErrorStatus(err error) int

Types

type API

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

func New

func New(options Options) (*API, error)

func (*API) Handler

func (a *API) Handler(operation string) http.HandlerFunc

type Options

type Options struct {
	Authorize func(context.Context) error
	Service   func(context.Context) (*browse.Service, error)
}

Jump to

Keyboard shortcuts

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