rest

package
v0.0.0-...-b105b8e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInterface

type AppInterface interface {
	api.App
	GetRouters() *[]Route
	GetRouterGroup() *[]RouteGroup
	GetMiddlewares() []func(http.Handler) http.Handler
	GetGraphQLQueries() *graphql.Fields
	GetGraphQLMutations() *graphql.Fields
}

AppInterface interface that define the interface of App for Rest adapter

type Route

type Route struct {
	Method  string
	Path    string
	Handler http.HandlerFunc
}

type RouteGroup

type RouteGroup struct {
	Prefix  string
	Routers []Route
}

type WebserverInterface

type WebserverInterface interface {
	Run() error
	AddApp(app AppInterface)
	GetApps() []AppInterface
	GetName() string
}

WebserverInterface interface that defines the adapter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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