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) }
Click to show internal directories.
Click to hide internal directories.