rest

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package rest exposes a simple API used by admins to query the whole tree directly without going through routers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplatesHandler

func NewTemplatesHandler(dao templates.DAO) service.WebHandler

Types

type Handler

type Handler struct {
	Dao templates.DAO
}

func (*Handler) Filter

func (a *Handler) Filter() func(string) string

Filter returns a function to filter the swagger path

func (*Handler) ListTemplates

func (a *Handler) ListTemplates(req *restful.Request, rsp *restful.Response) error

func (*Handler) SwaggerTags

func (a *Handler) SwaggerTags() []string

SwaggerTags list the names of the service tags declared in the swagger json implemented by this service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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