router

package
v0.0.0-...-4685c53 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

router package provides a way to route HTTP paths to HTTP handlers

Index

Constants

View Source
const (
	DefaultLabel = "router"
)

Variables

This section is empty.

Functions

func NewWithConfig

func NewWithConfig(c Config) (Router, error)

Types

type Config

type Config struct {
	L string `hcl:"label,label" json:"label,omitempty"`
}

func (Config) Label

func (c Config) Label() string

func (Config) Name

func (c Config) Name() string

func (Config) New

func (c Config) New(ctx context.Context, provider Provider) (Task, error)

Return a new task. Label for the task can be retrieved from context

Jump to

Keyboard shortcuts

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