Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLoginNotFound = errors.New("login not found")
)
Functions ¶
This section is empty.
Types ¶
type MultiRecord ¶
func (*MultiRecord) Clone ¶
func (r *MultiRecord) Clone() MultiRecord
func (*MultiRecord) CopyTo ¶
func (r *MultiRecord) CopyTo(dst *MultiRecord)
func (*MultiRecord) Validate ¶
func (r *MultiRecord) Validate() error
type Store ¶
type Store interface { // Save saves a multi login record in a single DB tx Save(ctx context.Context, record *MultiRecord) error // GetAllByInstallId gets a multi login record for an app install. If no // logins are detected, ErrLoginNotFound is returned. GetAllByInstallId(ctx context.Context, appInstallId string) (*MultiRecord, error) // GetLatestByOwner gets the latest login record for an owner. If no // login is detected, ErrLoginNotFound is returned. GetLatestByOwner(ctx context.Context, owner string) (*Record, error) }
Click to show internal directories.
Click to hide internal directories.