repo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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