storage

package
v0.0.0-...-2fd3ad3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBodyRewriteSource

func GetBodyRewriteSource(id string) (string, error)

GetBodyRewriteSource - returns key of bodyRewrite based on given entry value

func SlugCachePath

func SlugCachePath(slug, fileType string) string

SlugCachePath -

Types

type Item

type Item struct {
	BodyRewrite    map[string]string `json:"bodyRewrite"`
	ID             string            `json:"id"`
	IsCacheEnabled bool              `json:"isCacheEnabled"`
	URL            string            `json:"url"`
}

Item -

func GetProxyConfigBySlug

func GetProxyConfigBySlug(slug string) (Item, error)

GetProxyConfigBySlug - returns URL based on given slug

type Items

type Items []Item

Items -

func GetCached

func GetCached() (Items, error)

GetCached -

Jump to

Keyboard shortcuts

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