routestore

package
v0.0.0-...-37eefcc Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteStore

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

func InitRouteStore

func InitRouteStore() *RouteStore

func (*RouteStore) AddRoute

func (rs *RouteStore) AddRoute(id string, route *rm.Route)

func (*RouteStore) GetRoute

func (rs *RouteStore) GetRoute(id string) *rm.Route

func (*RouteStore) Load

func (rs *RouteStore) Load(m map[string]*rm.Route)

Loads the map to the route store

func (*RouteStore) RemoveRoute

func (rs *RouteStore) RemoveRoute(id string)

func (*RouteStore) Snapshot

func (rs *RouteStore) Snapshot() map[string]*rm.Route

Snapshot returns the current snapshot of the route store

Jump to

Keyboard shortcuts

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