api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 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

Overview

Package api adapts the service layer to connect-go handlers.

Index

Constants

View Source
const (
	MaxObjectsPerCall = 2000
	MaxMessageBytes   = 64 << 20
)

Limits for object transfer. Clients batch uploads to stay under them.

Variables

This section is empty.

Functions

func ClientIP added in v0.2.0

func ClientIP(r *http.Request) string

ClientIP is the address a request came from. Behind a proxy on a private or loopback address (Cloud Run, a local reverse proxy), it is the last public address in X-Forwarded-For: the one the proxy saw, not what the client claims further left.

func Mount

func Mount(mux *http.ServeMux, svc *service.Service)

Mount registers all services on mux: PublicService without a token, every other service behind token authentication. CLIs older than version.MinCLIVersion are refused everywhere.

func MountWithLog added in v0.2.0

func MountWithLog(mux *http.ServeMux, svc *service.Service, log *slog.Logger)

MountWithLog is Mount with the server's logger.

Types

type Handlers

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

Handlers implements every vx connect service.

func (*Handlers) AbortRebase added in v0.2.0

func (*Handlers) AddTask added in v0.2.0

func (*Handlers) Answer added in v0.2.0

func (*Handlers) Ask added in v0.2.0

func (*Handlers) Claim added in v0.2.0

func (*Handlers) CloseEffort added in v0.3.0

func (*Handlers) Context added in v0.2.0

func (*Handlers) ContinueRebase added in v0.2.0

func (*Handlers) CreateLoginCode added in v0.2.0

func (*Handlers) CreateOrg added in v0.2.0

func (*Handlers) CreatePerson added in v0.2.0

func (*Handlers) CreateTeam added in v0.2.0

func (*Handlers) CreateToken added in v0.2.0

func (*Handlers) DeleteTeam added in v0.2.0

func (*Handlers) GetOrg added in v0.2.0

func (*Handlers) GetRebase added in v0.2.0

func (*Handlers) GetRules added in v0.3.0

func (*Handlers) GrantRepo added in v0.2.0

func (*Handlers) Inbox added in v0.2.0

func (*Handlers) Land

func (*Handlers) ListAgents added in v0.2.0

func (*Handlers) ListClaims added in v0.2.0

func (*Handlers) ListNotes added in v0.2.0

func (*Handlers) ListOrgs added in v0.2.0

func (*Handlers) ListOverlaps added in v0.3.0

func (*Handlers) ListPeople added in v0.2.0

func (*Handlers) ListReservations added in v0.3.0

func (*Handlers) ListTasks added in v0.2.0

func (*Handlers) ListTokens added in v0.2.0

func (*Handlers) Log

func (*Handlers) MarkRead added in v0.3.0

func (*Handlers) PollCLILogin added in v0.2.0

func (*Handlers) PostNote added in v0.2.0

func (*Handlers) RebaseEffort added in v0.2.0

func (*Handlers) Release added in v0.2.0

func (*Handlers) RemoveMember added in v0.2.0

func (*Handlers) RemoveTeamMember added in v0.2.0

func (*Handlers) RepoAccess added in v0.2.0

func (*Handlers) ReportChanges added in v0.3.0

func (*Handlers) Reserve added in v0.3.0

func (*Handlers) RevokeRepo added in v0.2.0

func (*Handlers) RevokeToken added in v0.2.0

func (*Handlers) ServerInfo added in v0.2.0

func (*Handlers) SetMember added in v0.2.0

func (*Handlers) SetTeamMember added in v0.2.0

func (*Handlers) StartCLILogin added in v0.2.0

func (*Handlers) UpdateOrg added in v0.2.0

func (*Handlers) UpdateTask added in v0.2.0

Jump to

Keyboard shortcuts

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