Documentation ¶
Index ¶
- Constants
- func Auth(options ...Option) app.HandlerFunc
- type LaravelKey
- type Option
- func WithAppKey(appKey []byte) Option
- func WithCachePrefix(prefix string) Option
- func WithDb(db *gorm.DB) Option
- func WithDisableEncryptCookies(disable bool) Option
- func WithExceptEncryptCookies(except []string) Option
- func WithIgnorePaths(paths []string) Option
- func WithRedisClient(client redis.UniversalClient) Option
- func WithRememberCookieName(cm string) Option
- func WithSerialization(serialization serialization) Option
- func WithSessionCookieName(cm string) Option
- func WithTableName(tableName string) Option
- func WithUnAuthHandler(handler unAuthHandler) Option
Constants ¶
View Source
const ( PhpSerialize serialization = "php" JsonSerialize serialization = "json" )
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(options ...Option) app.HandlerFunc
Types ¶
type LaravelKey ¶
type LaravelKey string
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAppKey ¶
func WithCachePrefix ¶
func WithIgnorePaths ¶
func WithRedisClient ¶
func WithRedisClient(client redis.UniversalClient) Option
func WithRememberCookieName ¶
func WithSerialization ¶
func WithSerialization(serialization serialization) Option
func WithSessionCookieName ¶
func WithTableName ¶
func WithUnAuthHandler ¶
func WithUnAuthHandler(handler unAuthHandler) Option
Click to show internal directories.
Click to hide internal directories.