Documentation ¶
Index ¶
- Constants
- func AddCRCHeader(c *gin.Context, crc string)
- func CRC32FromReader(reader io.Reader) (string, error)
- func ClaimsFromToken(claim jwt.Claims, token string, key []byte) error
- func GetToken(c *gin.Context) (string, error)
- func NewLastModifiedFS(fs http.FileSystem, lastModified time.Time) http.FileSystem
- func ParamS(param string, c *gin.Context) string
- func QueryS(param string, c *gin.Context) string
- func Sanitize(param string) string
- func SanitizeUid(uid string) string
- func SignClaims(claims jwt.Claims, key []byte) (string, error)
- type EntryType
- type StaticFileInfoWrapper
- type StaticFileWrapper
- type SyncVersion
Constants ¶
View Source
const CRC32CHashHeader = "x-goog-hash"
Variables ¶
This section is empty.
Functions ¶
func AddCRCHeader ¶ added in v0.0.20
func ClaimsFromToken ¶
ClaimsFromToken parses the claims from the token
func NewLastModifiedFS ¶ added in v0.0.20
func NewLastModifiedFS(fs http.FileSystem, lastModified time.Time) http.FileSystem
NewLastModifiedFS returns a filesystem with a fixed LastModified to enable caching of embedded assets
func SignClaims ¶
SignClaims signs the claims i.e. creates a token
Types ¶
type StaticFileInfoWrapper ¶ added in v0.0.20
func (*StaticFileInfoWrapper) ModTime ¶ added in v0.0.20
func (f *StaticFileInfoWrapper) ModTime() time.Time
type StaticFileWrapper ¶ added in v0.0.20
type SyncVersion ¶ added in v0.0.12
type SyncVersion int
const ( Sync10 SyncVersion = 10 Sync15 SyncVersion = 15 )
Click to show internal directories.
Click to hide internal directories.