api

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(opts Options) *API

func (*API) Register

func (api *API) Register(r *route.Router) *http.ServeMux

func (*API) Update

func (api *API) Update(conf *config.Config, tmpl *template.Template)

Update updates the config field of the API struct

type Options

type Options struct {
	Logger log.Logger
	Debug  bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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