ginmiddleware

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLogin added in v0.0.6

func MustLogin() gin.HandlerFunc

func ReadBody

func ReadBody() gin.HandlerFunc

func Record

func Record() gin.HandlerFunc

func Static

func Static(prefix string, fs *StaticFileSystem) gin.HandlerFunc

Types

type StaticFileSystem

type StaticFileSystem struct {
	// contains filtered or unexported fields
}

func NewStaticFileSystem

func NewStaticFileSystem(data embed.FS, root string) *StaticFileSystem

func (*StaticFileSystem) Exists

func (s *StaticFileSystem) Exists(prefix string, filepath string) bool

func (*StaticFileSystem) Open

func (s *StaticFileSystem) Open(name string) (http.File, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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