api

package
v0.0.0-...-f4ef19a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFoundHandler

func NotFoundHandler(next echo.HandlerFunc) echo.HandlerFunc

Types

type FromType

type FromType string
const (
	FromTypeStruct    FromType = "struct"
	FromTypeInterface FromType = "interface"
)

type Mocker

type Mocker interface {
	Generate(RequestGET) (io.Reader, error)
}

type RequestGET

type RequestGET struct {
	Module  string   `json:"module"`
	Package string   `json:"package"`
	Type    string   `json:"type"`
	To      ToType   `param:"to"`
	From    FromType `param:"from"`
}

type Server

type Server interface {
	HandleGET(c echo.Context) error
}

func NewServer

func NewServer(m Mocker) Server

type ToType

type ToType string
const (
	ToTypeMock      ToType = "mock"
	ToTypeInterface ToType = "interface"
)

Jump to

Keyboard shortcuts

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