Versions in this module Expand all Collapse all v0 v0.0.0 Jul 11, 2020 Changes in this version + var StreamName = fmt.Sprintf("%T", Token{}) + func OnCreate(repository Repository, db *sql.DB) commandbus.CommandHandler + func OnRemove(repository Repository, db *sql.DB) commandbus.CommandHandler + type Create struct + TokenInfo oauth2.TokenInfo + func (c Create) GetName() string + type Remove struct + ID uuid.UUID + func (c Remove) GetName() string + type Repository interface + Get func(id uuid.UUID) Token + Save func(ctx context.Context, t Token) error + type Token struct + func FromHistory(events []domain.Event) Token + func New() Token + func (t *Token) Create(id uuid.UUID, info oauth2.TokenInfo) error + func (t *Token) Remove() error + func (t Token) Changes() []domain.Event + func (t Token) ID() uuid.UUID + func (t Token) Version() int + type WasCreated struct + Access string + ClientID uuid.UUID + Code string + Data json.RawMessage + ID uuid.UUID + Refresh string + Scope string + UserID uuid.UUID + func (e WasCreated) GetType() string + type WasRemoved struct + ID uuid.UUID + func (e WasRemoved) GetType() string