metadata

package
v0.0.0-...-0c70756 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormMetadataStorage

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

func NewGormMetadataStorage

func NewGormMetadataStorage(settings GormMetadataStorageSettings) (*GormMetadataStorage, error)

func (*GormMetadataStorage) GetConnection

func (gms *GormMetadataStorage) GetConnection() interface{}

func (*GormMetadataStorage) GetSubType

func (gms *GormMetadataStorage) GetSubType() string

func (*GormMetadataStorage) GetType

type GormMetadataStorageSettings

type GormMetadataStorageSettings struct {
	Driver string
	DSN    string
}

type MetadataStorage

type MetadataStorage interface {
	GetType() MetadataStorageType
	GetSubType() string

	GetConnection() interface{}
}

func GetMetadataStorage

func GetMetadataStorage(config MetadataStorageConfig) (MetadataStorage, error)

type MetadataStorageConfig

type MetadataStorageConfig struct {
	Type     MetadataStorageType
	Settings interface{}
}

func GetDefaults

func GetDefaults() MetadataStorageConfig

type MetadataStorageType

type MetadataStorageType string
const MetadataStorageTypeGorm MetadataStorageType = "gorm"

Jump to

Keyboard shortcuts

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