Documentation ¶
Index ¶
- Constants
- func NewRouter(configurations ...runtime.Configuration[*Router]) runtime.Runtime
- func WithRouterBunHandler(method string, path string, handler bunrouter.HandlerFunc) runtime.Configuration[*Router]
- func WithRouterFlow(configurations ...runtime.Configuration[*router.RouteFlow]) runtime.Configuration[*Router]
- func WithRouterGroup(path string) runtime.Configuration[*Router]
- func WithRouterHttpConfiguration(config runtime.Configuration[*runtime.HttpRunnable]) runtime.Configuration[*Router]
- func WithRouterHttpHandler(method string, path string, handler http.HandlerFunc) runtime.Configuration[*Router]
- func WithRouterPort(port int) runtime.Configuration[*Router]
- func WithRouterProducer(producer message.Producer) runtime.Configuration[*Router]
- func WithRouterProducerHandler(method string, path string, ...) runtime.Configuration[*Router]
- func WithRouterPrometheus() runtime.Configuration[*Router]
- type Router
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 WithRouterProducer ¶ added in v0.0.4
func WithRouterProducer(producer message.Producer) runtime.Configuration[*Router]
func WithRouterProducerHandler ¶ added in v0.0.4
func WithRouterPrometheus ¶
func WithRouterPrometheus() runtime.Configuration[*Router]
Types ¶
Click to show internal directories.
Click to hide internal directories.