example

package
v1.87.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDocsAPI = errs.Class("example docs api")

Functions

This section is empty.

Types

type DocumentsHandler added in v1.87.1

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

DocumentsHandler is an api handler that exposes all docs related functionality.

func NewDocuments added in v1.87.1

func NewDocuments(log *zap.Logger, mon *monkit.Scope, service DocumentsService, router *mux.Router, auth api.Auth) *DocumentsHandler

type DocumentsService added in v1.87.1

type DocumentsService interface {
	UpdateContent(ctx context.Context, path string, id uuid.UUID, date time.Time, request struct {
		Content string "json:\"content\""
	}) (*struct {
		ID        uuid.UUID "json:\"id\""
		Date      time.Time "json:\"date\""
		PathParam string    "json:\"pathParam\""
		Body      string    "json:\"body\""
	}, api.HTTPError)
}

Jump to

Keyboard shortcuts

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