runtime_bunrouter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewRouter

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

constructor

func WithRouterBunHandler

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

func WithRouterFlow added in v0.0.17

func WithRouterFlow(configurations ...runtime.Configuration[*router.RouteFlow]) runtime.Configuration[*Router]

func WithRouterGroup

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

func WithRouterHttpConfiguration added in v0.0.13

func WithRouterHttpConfiguration(config runtime.Configuration[*runtime.HttpRunnable]) 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 message.Producer) runtime.Configuration[*Router]

func WithRouterProducerHandler added in v0.0.4

func WithRouterProducerHandler(method string, path string, bodyMap stateless.OneToOneFunction[message.Bytes, message.Bytes, message.Bytes, message.Bytes]) runtime.Configuration[*Router]

func WithRouterPrometheus

func WithRouterPrometheus() runtime.Configuration[*Router]

Types

type Router

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

implementation

Jump to

Keyboard shortcuts

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