services

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 3 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
}

API is a collection of endpoints.

func AddEndpoints

func AddEndpoints(endpoints []EndPoint) *API

func (*API) Routes

func (a *API) Routes() *httprouter.Router

routes configures a new httprouter.Router.

type EndPoint

type EndPoint struct {
	Path       string
	Handler    httprouter.Handle
	MethodType string
}

EndPoint represents an api element.

Jump to

Keyboard shortcuts

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