...

Package static

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

Overview ▾

Package static is a static router which returns the service name as the address + port

Variables

var (
    DefaultAddress = "unix:///tmp/nitro.sock"
)

func NewRouter

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

NewRouter returns an initialized static router