runtime_bunrouter

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET    = "GET"
	POST   = "POST"
	PUT    = "PUT"
	DELETE = "DELETE"
)

Variables

This section is empty.

Functions

func WithRouterBunHandler

func WithRouterBunHandler(method string, path string, handler bunrouter.HandlerFunc) runtime.Configuration[*Router]

func WithRouterGroup

func WithRouterGroup(path string) runtime.Configuration[*Router]

func WithRouterHttpHandler

func WithRouterHttpHandler(method string, path string, handler http.HandlerFunc) runtime.Configuration[*Router]

func WithRouterPort

func WithRouterPort(port int) runtime.Configuration[*Router]

configuration

func WithRouterProducer added in v0.0.4

func WithRouterProducer(producer runtime.Producer) runtime.Configuration[*Router]

func WithRouterProducerHandler added in v0.0.4

func WithRouterProducerHandler(method string, path string, bodyMap router.RouteProduceMapFunction) runtime.Configuration[*Router]

func WithRouterPrometheus

func WithRouterPrometheus() runtime.Configuration[*Router]

Types

type Router

type Router struct {
	// contains filtered or unexported fields
}

implementation

func NewRouter

func NewRouter(configurations ...runtime.Configuration[*Router]) *Router

constructor

func (*Router) Run

func (r *Router) Run()

func (*Router) Start

func (r *Router) Start() error

func (*Router) Stop

func (runtime *Router) Stop()

Jump to

Keyboard shortcuts

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