csrf

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

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsrfRepo

type CsrfRepo struct {
	Connection bool
	// contains filtered or unexported fields
}

func GetCsrfRepo

func GetCsrfRepo(csrfConfigs configs.DbRedisCfg, lg *slog.Logger) (*CsrfRepo, error)

func (*CsrfRepo) AddCsrf

func (redisRepo *CsrfRepo) AddCsrf(ctx context.Context, active models.Csrf, lg *slog.Logger) (bool, error)

func (*CsrfRepo) CheckActiveCsrf

func (redisRepo *CsrfRepo) CheckActiveCsrf(ctx context.Context, sid string, lg *slog.Logger) (bool, error)

func (*CsrfRepo) CheckRedisCsrfConnection

func (redisRepo *CsrfRepo) CheckRedisCsrfConnection(csrfCfg configs.DbRedisCfg)

func (*CsrfRepo) DeleteSession

func (redisRepo *CsrfRepo) DeleteSession(ctx context.Context, sid string, lg *slog.Logger) (bool, error)

Jump to

Keyboard shortcuts

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