...

Package registry

import "github.com/gonitro/nitro/app/router/registry"
Overview
Index

Overview ▾

Variables

var (
    // RefreshInterval is the time at which we completely refresh the table
    RefreshInterval = time.Second * 120
    // PruneInterval is how often we prune the routing table
    PruneInterval = time.Second * 10
)

func NewRouter

func NewRouter(opts ...router.Option) router.Router

NewRouter creates new router and returns it