endpoints

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Path        string `yaml:"path"`
	Method      string `yaml:"method"`
	HandlerName string `yaml:"handlerName"`
	Handler     http.HandlerFunc
}

type Endpoints

type Endpoints map[string]*Endpoint

func Read

func Read(configPath string, handlers Handlers) Endpoints

type Handlers

type Handlers map[string]http.HandlerFunc

Jump to

Keyboard shortcuts

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