api

package
v0.0.0-...-1205d1c Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(options ...Option) error

NewRouter creates a new router with the given options

Types

type Option

type Option func(*RouterConfig)

Option defines a function that configures a Router

func WithContext

func WithContext(ctx *cli.Context) Option

WithContext sets the context for the server

func WithDevClient

func WithDevClient(conn *grpc.ClientConn) Option

WithDevClient sets the dev gRPC client

func WithMapsClient

func WithMapsClient(conn *grpc.ClientConn) Option

WithMapsClient sets the data gRPC client

func WithPort

func WithPort(port int) Option

WithPort sets the port for the server£

func WithShutdownTimeout

func WithShutdownTimeout(timeout time.Duration) Option

WithShutdownTimeout sets the graceful shutdown timeout

type RouterConfig

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

RouterConfig holds all router configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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