vegvisir/pkg/cache/route.go

25 lines
686 B
Go
Raw Permalink Normal View History

// ___ ____ ___ ___
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
// \ / | _ | _ | \ / || __ | || ||\\
// \/ |___ |___ | \/ || ____| || || \\
//
// 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
type RouteCache struct {
2021-08-03 00:13:14 +02:00
SourceURL string
TargetURL string
}
2021-11-15 21:41:38 +01:00
// NewRouteCache Creates new router instance
func NewRouteCache(source, target string) *RouteCache {
return &RouteCache{
SourceURL: source,
TargetURL: target,
}
}