2021-07-23 16:10:37 +02:00
|
|
|
// ___ ____ ___ ___
|
|
|
|
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
|
|
|
|
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
|
|
|
|
// \ / | _ | _ | \ / || __ | || ||\\
|
|
|
|
// \/ |___ |___ | \/ || ____| || || \\
|
|
|
|
//
|
|
|
|
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
|
|
|
|
// Repo: https://git.pbiernat.dev/golang/vegvisir
|
|
|
|
|
|
|
|
package cache
|
|
|
|
|
2021-11-15 21:41:38 +01:00
|
|
|
// RouteCache struct corresponding route cache item
|
2021-07-23 16:10:37 +02:00
|
|
|
type RouteCache struct {
|
2021-08-03 00:13:14 +02:00
|
|
|
SourceURL string
|
|
|
|
TargetURL string
|
2021-07-23 16:10:37 +02:00
|
|
|
}
|
|
|
|
|
2021-11-15 21:41:38 +01:00
|
|
|
// NewRouteCache Creates new router instance
|
2021-11-10 01:36:33 +01:00
|
|
|
func NewRouteCache(source, target string) *RouteCache {
|
|
|
|
return &RouteCache{
|
|
|
|
SourceURL: source,
|
|
|
|
TargetURL: target,
|
2021-07-23 16:10:37 +02:00
|
|
|
}
|
|
|
|
}
|