boltdb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 4 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 backend service with BoltDB support.

Types

type DatabaseComposer

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

DatabaseComposer composes BoltDB services.

func NewComposer

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

NewComposer creates new database composer with BoltDB support.

func (*DatabaseComposer) Compose

Compose composes all services with BoltDB support.

type PartialDatabaseComposer

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

PartialDatabaseComposer composes only BoltDB-supporting services.

func NewPartialComposer

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

NewPartialComposer returns new partial composer with BoltDB 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