limits

package
v0.0.0-...-c16b6a5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrForbidden = errors.New("forbidden")
View Source
var ErrInternal = errors.New("internal failure")
View Source
var ErrInvalid = errors.New("invalid")
View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Service

type Service interface {
	GetRaw(ctx context.Context, groupId, userId string, subj model.Subject) (l model.Limit, err error)
	Set(ctx context.Context, groupId, userId string, subj model.Subject, count int64, expires time.Time) (err error)
}

func NewService

func NewService(
	client ServiceClient,
) Service

func NewServiceLogging

func NewServiceLogging(svc Service, log *slog.Logger) Service

Jump to

Keyboard shortcuts

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