Documentation
¶
Index ¶
- type AuthCode
- type Cache
- func (c *Cache) Read(ctx context.Context, key string) (string, error)
- func (c *Cache) ReadHash(ctx context.Context, key string, field string) (string, error)
- func (c *Cache) ReadHashAll(ctx context.Context, key string) (map[string]string, error)
- func (c *Cache) Write(ctx context.Context, key string, value any, ttl time.Duration) error
- func (c *Cache) WriteHash(ctx context.Context, key string, values map[string]any, ttl time.Duration) error
- type CheckHealth
- type RedirectURI
- type RelyingParty
- func (rp *RelyingParty) CreateAuthCode(ctx context.Context, code string, clientID typedef.ClientID, ...) (*entity.AuthCode, error)
- func (rp *RelyingParty) ReadCredential(ctx context.Context, clientID typedef.ClientID, clientSecret string) (*entity.RelyingParty, error)
- func (rp *RelyingParty) ReadRedirectURIs(ctx context.Context, clientID typedef.ClientID) ([]*entity.RedirectURI, error)
- type User
- func (u *User) CreateConsent(ctx context.Context, userID typedef.UserID, clientID typedef.ClientID) (*entity.Consent, error)
- func (u *User) CreateUser(ctx context.Context, name string, pw string) (*entity.User, error)
- func (u *User) ReadConsent(ctx context.Context, userID typedef.UserID, clientID typedef.ClientID) (*entity.Consent, error)
- func (u *User) ReadUser(ctx context.Context, name string) (*entity.User, error)
- func (u *User) ReadUserByID(ctx context.Context, id typedef.UserID) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCode ¶
type AuthCode struct {
// contains filtered or unexported fields
}
func NewAuthCode ¶
func (*AuthCode) ReadAuthCode ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) ReadHashAll ¶
type CheckHealth ¶
type CheckHealth struct {
// contains filtered or unexported fields
}
func NewCheckHealth ¶
func NewCheckHealth(db *datastore.Database, cache *datastore.Cache) *CheckHealth
func (*CheckHealth) PingDatabase ¶
func (ch *CheckHealth) PingDatabase(ctx context.Context) error
type RedirectURI ¶
type RedirectURI struct {
// contains filtered or unexported fields
}
func NewRedirectURI ¶
func NewRedirectURI(db *datastore.Database) *RedirectURI
func (*RedirectURI) ReadRedirectURI ¶
func (ru *RedirectURI) ReadRedirectURI(ctx context.Context, clientID typedef.ClientID) (*entity.RedirectURI, error)
type RelyingParty ¶
type RelyingParty struct {
// contains filtered or unexported fields
}
func NewRelyingParty ¶
func NewRelyingParty(db *datastore.Database) *RelyingParty
func (*RelyingParty) CreateAuthCode ¶
func (*RelyingParty) ReadCredential ¶
func (rp *RelyingParty) ReadCredential(ctx context.Context, clientID typedef.ClientID, clientSecret string) (*entity.RelyingParty, error)
func (*RelyingParty) ReadRedirectURIs ¶
func (rp *RelyingParty) ReadRedirectURIs(ctx context.Context, clientID typedef.ClientID) ([]*entity.RedirectURI, error)
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) CreateConsent ¶
func (*User) CreateUser ¶
func (*User) ReadConsent ¶
Click to show internal directories.
Click to hide internal directories.