mgo

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 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 backend service with MongoDB support.

Types

type DatabaseComposer

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

DatabaseComposer composes MongoDB services.

func NewComposer

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

NewComposer creates new database composer.

func (*DatabaseComposer) Compose

Compose composes all services with MongoDB support.

type PartialDatabaseComposer

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

PartialDatabaseComposer composes only MongoDB-supporting services.

func NewPartialComposer

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

NewPartialComposer returns new partial composer with MongoDB support.

func (*PartialDatabaseComposer) AppStorageComposer

func (pc *PartialDatabaseComposer) AppStorageComposer() func() (model.AppStorage, error)

AppStorageComposer returns app storage composer.

func (*PartialDatabaseComposer) InviteStorageComposer added in v1.2.4

func (pc *PartialDatabaseComposer) InviteStorageComposer() func() (model.InviteStorage, error)

InviteStorageComposer returns invite 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