managers

package
v0.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityConfigManager

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

EntityConfigManager -

func (*EntityConfigManager) All

func (manager *EntityConfigManager) All(ctx context.Context, version string) (sch schema.Schema, err error)

All -

func (*EntityConfigManager) Read

func (manager *EntityConfigManager) Read(ctx context.Context, name string, version string) (entity schema.Entity, err error)

Read -

func (*EntityConfigManager) Write

func (manager *EntityConfigManager) Write(ctx context.Context, configs entities.EntityConfigs) (version string, err error)

Write -

type IEntityConfigManager

type IEntityConfigManager interface {
	All(ctx context.Context, version string) (sch schema.Schema, err error)
	Read(ctx context.Context, name string, version string) (entity schema.Entity, err error)
	Write(ctx context.Context, configs entities.EntityConfigs) (version string, err error)
}

IEntityConfigManager -

func NewEntityConfigManager

func NewEntityConfigManager(repository repositories.IEntityConfigRepository, cache *ristretto.Cache) IEntityConfigManager

NewEntityConfigManager -

Jump to

Keyboard shortcuts

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