Documentation ¶
Index ¶
- func GenerateKey(URL string) string
- func GetClusterDashName(shortName string) (string, error)
- func HTTPCache(client *cache.Cache[string], appConfig *config.AppConfig, tags []string) echo.MiddlewareFunc
- func Livez(c echo.Context) error
- func Metrics() echo.HandlerFunc
- func NewRouter() *echo.Echo
- func RateLimiter(appConfig *config.AppConfig) echo.MiddlewareFunc
- func Version(version string) echo.HandlerFunc
- type Response
- type StatusSessions
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶ added in v1.6.0
func GetClusterDashName ¶
Convert cluster shortName into standard name format Ex. cluster01produseast1 becomes cluster01-prod-useast1
func RateLimiter ¶ added in v1.0.0
RateLimiter returns a middleware.RateLimiterWithConfig
Types ¶
type Response ¶ added in v1.6.0
type Response struct { // Value is the cached response value. Value []byte // Header is the cached response header. Header http.Header }
func StringToResponse ¶ added in v1.6.0
type StatusSessions ¶
type StatusSessions struct { SQS *sqs.Config Db database.Db AppConfig *config.AppConfig Metrics monitoring.MetricsI }
StatusSessions is used to keep the same objects and state for the database and sqs that are used for the rest of the calls inside the project
func (*StatusSessions) Readyz ¶
func (s *StatusSessions) Readyz(c echo.Context) error
Readyz checks if the services that the apiserver uses are healthy
Source Files ¶
Click to show internal directories.
Click to hide internal directories.