Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeniedApplicantRepo ¶
type DeniedApplicantRepo interface { DeleteOldestDeniedApplicant() error PutDeniedApplicant(deniedApplicant *data.DeniedApplicant) error UpdateACLRuleNumber(subject *data.Subject, aclRuleNumber int64) error }
DeniedApplicantRepo is a repository for denied applicants.
type DeniedApplicantRepoImpl ¶
type DeniedApplicantRepoImpl struct {
// contains filtered or unexported fields
}
DeniedApplicantRepoImpl is a concrete implementation of DeniedApplicantRepo.
func NewDeniedApplicantRepoImpl ¶
func NewDeniedApplicantRepoImpl(dyn *dynamodb.DynamoDB, tableName string) *DeniedApplicantRepoImpl
NewDeniedApplicantRepoImpl creates a new DeniedApplicantRepoImpl.
func (*DeniedApplicantRepoImpl) DeleteOldestDeniedApplicant ¶
func (r *DeniedApplicantRepoImpl) DeleteOldestDeniedApplicant() error
DeleteOldestDeniedApplicant deletes the oldest entry.
func (*DeniedApplicantRepoImpl) PutDeniedApplicant ¶
func (r *DeniedApplicantRepoImpl) PutDeniedApplicant(deniedApplicant *data.DeniedApplicant) error
PutDeniedApplicant puts a new denied applicant entry.
func (*DeniedApplicantRepoImpl) UpdateACLRuleNumber ¶
func (r *DeniedApplicantRepoImpl) UpdateACLRuleNumber(subject *data.Subject, aclRuleNumber int64) error
UpdateACLRuleNumber updates an entry with given ACL rule number.
Click to show internal directories.
Click to hide internal directories.