generator

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	StatusCode  int
	ContentType string
	Data        interface{}
}

type ResponseGenerator

type ResponseGenerator interface {
	GenerateResponse(request *http.Request, route *routers.Route) (*Response, error)
}

func New

func New(dataGenerator data.MediaGenerator) ResponseGenerator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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