Documentation
¶
Overview ¶
Package usertokentest holds the conformance suite of usertoken.Store and an in-memory Store that runs it.
Index ¶
- func Run(t *testing.T, newStore func(t *testing.T) usertoken.Store)
- type Mem
- func (m *Mem) CreateUserToken(_ context.Context, hash string, r usertoken.Record) error
- func (m *Mem) RevokeUserToken(_ context.Context, id string, when time.Time) error
- func (m *Mem) UserTokenByHash(_ context.Context, hash string) (usertoken.Record, error)
- func (m *Mem) UserTokens(context.Context) ([]usertoken.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mem ¶
type Mem struct {
// contains filtered or unexported fields
}
Mem is a Store in memory.
func (*Mem) CreateUserToken ¶
func (*Mem) RevokeUserToken ¶
func (*Mem) UserTokenByHash ¶
Click to show internal directories.
Click to hide internal directories.