example

package
v1.84.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTestapiAPI = errs.Class("example testapi api")

Functions

This section is empty.

Types

type TestAPIHandler

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

TestAPIHandler is an api handler that exposes all testapi related functionality.

func NewTestAPI

func NewTestAPI(log *zap.Logger, mon *monkit.Scope, service TestAPIService, router *mux.Router, auth api.Auth) *TestAPIHandler

type TestAPIService

type TestAPIService interface {
	GenTestAPI(ctx context.Context, path string, id uuid.UUID, date time.Time, request struct{ Content string }) (*struct {
		ID        uuid.UUID
		Date      time.Time
		PathParam string
		Body      string
	}, api.HTTPError)
}

Jump to

Keyboard shortcuts

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