authlog

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationLog

type AuthenticationLog struct {
	ID        int64
	UserID    uint
	IP        string
	UserAgent string
	CreatedAt time.Time
}

func (*AuthenticationLog) ToGraph

type Repository

type Repository interface {
	Count(ctx context.Context) (int64, error)
	GetAll(ctx context.Context) ([]*AuthenticationLog, error)
	GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*AuthenticationLog, error)
	GetByID(ctx context.Context, id int64) (*AuthenticationLog, error)
	Create(ctx context.Context, upload *AuthenticationLog) error
	Update(ctx context.Context, upload *AuthenticationLog) error
	Delete(ctx context.Context, id int64) error
}

Jump to

Keyboard shortcuts

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