appfeatures

package
v0.0.0-...-b81d553 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppFeature

type AppFeature interface {
	Upgrade() error
}

type AppFeatures

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

func New

func New(client *mongo.Client, dbName, collectionName, appName string) *AppFeatures

func (*AppFeatures) EnableFeaturesAndUpgrade

func (af *AppFeatures) EnableFeaturesAndUpgrade(ctx context.Context, features map[string]AppFeature) error

func (*AppFeatures) Init

func (af *AppFeatures) Init(ctx context.Context) error

Jump to

Keyboard shortcuts

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