Documentation
¶
Index ¶
- Constants
- func AddHashHeader(c *gin.Context, hash string)
- func CRC32CFromReader(reader io.Reader) (string, error)
- func CRC32CSum(crc32c hash.Hash32) string
- func CRC32CWriter() hash.Hash32
- 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 GCPHashHeader = "x-goog-hash"
Variables ¶
This section is empty.
Functions ¶
func AddHashHeader ¶ added in v0.0.25
func CRC32CWriter ¶ added in v0.0.25
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
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.