Documentation ¶
Index ¶
- func NewServer(settings model.ServerSettings, cors *model.CorsOptions, ...) (model.Server, error)
- type DatabaseComposer
- type PartialDatabaseComposer
- func (pc *PartialDatabaseComposer) AppStorageComposer() func() (model.AppStorage, error)
- func (pc *PartialDatabaseComposer) TokenBlacklistComposer() func() (model.TokenBlacklist, error)
- func (pc *PartialDatabaseComposer) TokenStorageComposer() func() (model.TokenStorage, error)
- func (pc *PartialDatabaseComposer) UserStorageComposer() func() (model.UserStorage, error)
- func (pc *PartialDatabaseComposer) VerificationCodeStorageComposer() func() (model.VerificationCodeStorage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseComposer ¶
type DatabaseComposer struct {
// contains filtered or unexported fields
}
DatabaseComposer composes DynamoDB services.
func NewComposer ¶
func NewComposer(settings model.ServerSettings) (*DatabaseComposer, error)
NewComposer creates new database composer.
func (*DatabaseComposer) Compose ¶
func (dc *DatabaseComposer) Compose() ( model.AppStorage, model.UserStorage, model.TokenStorage, model.TokenBlacklist, model.VerificationCodeStorage, error, )
Compose composes all services with DynamoDB support.
type PartialDatabaseComposer ¶
type PartialDatabaseComposer struct {
// contains filtered or unexported fields
}
PartialDatabaseComposer composes only DynamoDB-supporting services.
func NewPartialComposer ¶
func NewPartialComposer(settings model.StorageSettings, options ...func(*PartialDatabaseComposer) error) (*PartialDatabaseComposer, error)
NewPartialComposer returns new partial composer with DynamoDB support.
func (*PartialDatabaseComposer) AppStorageComposer ¶
func (pc *PartialDatabaseComposer) AppStorageComposer() func() (model.AppStorage, error)
AppStorageComposer returns app storage composer.
func (*PartialDatabaseComposer) TokenBlacklistComposer ¶
func (pc *PartialDatabaseComposer) TokenBlacklistComposer() func() (model.TokenBlacklist, error)
TokenBlacklistComposer returns token blacklist composer.
func (*PartialDatabaseComposer) TokenStorageComposer ¶
func (pc *PartialDatabaseComposer) TokenStorageComposer() func() (model.TokenStorage, error)
TokenStorageComposer returns token storage composer.
func (*PartialDatabaseComposer) UserStorageComposer ¶
func (pc *PartialDatabaseComposer) UserStorageComposer() func() (model.UserStorage, error)
UserStorageComposer returns user storage composer.
func (*PartialDatabaseComposer) VerificationCodeStorageComposer ¶
func (pc *PartialDatabaseComposer) VerificationCodeStorageComposer() func() (model.VerificationCodeStorage, error)
VerificationCodeStorageComposer returns verification code storage composer.
Click to show internal directories.
Click to hide internal directories.