fake

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(settings model.ServerSettings, cors *model.CorsOptions, serverOptions ...func(*server.Server) error) (model.Server, error)

NewServer creates new in-memory backend service.

Types

type DatabaseComposer

type DatabaseComposer struct {
	// contains filtered or unexported fields
}

DatabaseComposer composes in-memory services.

func NewComposer

func NewComposer(settings model.ServerSettings) (*DatabaseComposer, error)

NewComposer creates new database composer with in-memory storage support.

func (*DatabaseComposer) Compose

Compose composes all services with in-memory storage support.

type PartialDatabaseComposer

type PartialDatabaseComposer struct {
	// contains filtered or unexported fields
}

PartialDatabaseComposer composes only those services that support in-memory storage.

func NewPartialComposer

func NewPartialComposer(settings model.StorageSettings, options ...func(*PartialDatabaseComposer) error) (*PartialDatabaseComposer, error)

NewPartialComposer returns new partial composer with in-memory storage 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL