Documentation
¶
Index ¶
- Variables
- type Actor
- type Context
- type Email
- type Event
- type EventRepository
- type EventType
- type EventTypeRepository
- type EventTypeVersion
- type Export
- type ID
- type Metadata
- type Password
- type Schema
- type Source
- type SourceRepository
- type Target
- type Token
- type TokenRepository
- type TokenValue
- type User
- type UserRepository
- type UserRole
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEventTypeNotFound = errors.New("event_type not found") ErrEventTypeActionNotFound = errors.New("event type action not found") ErrSourceNotFound = errors.New("source not found") ErrSourceWithProvidedNameExists = errors.New("the source with the name provided already exists") ErrEventTypeExists = errors.New("the action specified for the event type already exists") ErrEventTypeVersionExists = errors.New("the event_type_version already exists") ErrVersionOneOfEventTypeCannotBeRolledBack = errors.New("version 1 of event type cannot be rolledback") ErrEventNotFound = errors.New("event not found") )
View Source
var ( ErrUserNotFound = errors.New("user not found") ErrAuthenticationFailedCredentialsMismatch = errors.New("authentication failed due to credentials mismatch") )
View Source
var ( UserRoleAdmin = UserRole("admin") UserRoleMember = UserRole("member") )
View Source
var (
ErrSourceNotFoundWhileSavingEvent = errors.New("source not found while saving event")
)
View Source
var ErrTokenNotFound = errors.New("token not found")
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func MarshallToEvent ¶
func (*Event) OccurredAt ¶
type EventRepository ¶
type EventTypeRepository ¶
type EventTypeVersion ¶
func NewEventTypeVersion ¶
func NewEventTypeVersion(targetTypes []string, schema Schema) EventTypeVersion
type Password ¶
type Password struct {
// contains filtered or unexported fields
}
func NewPassword ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func MarshallToSource ¶
type SourceRepository ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func MarshallToToken ¶
func (*Token) MaskedValue ¶
func (*Token) Value ¶
func (t *Token) Value() TokenValue
type TokenRepository ¶
type TokenValue ¶
type TokenValue string
func NewTokenValue ¶
func NewTokenValue() TokenValue
func (TokenValue) String ¶
func (t TokenValue) String() string
type UserRepository ¶
Click to show internal directories.
Click to hide internal directories.