services

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentMenuVersion = "current"

CurrentMenuVersion its current tag version of menu

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(ctx context.Context, key interface{}) (interface{}, error)
	Put(ctx context.Context, key interface{}, value interface{}, ttl time.Duration) error
	Close() error
}

Cache ...

func NewCache

func NewCache() Cache

NewCache ...

type Menu interface {
	Get(ctx context.Context, uuid string, version string) (string, error)
	Process(ctx context.Context, uuid string, version string, payload *dtos.Process) (string, error)
}

Menu ...

func NewMenu

func NewMenu(cfg *config.Config, loadersManager loaders.Manager, cacheService Cache) Menu

NewMenu ...

Jump to

Keyboard shortcuts

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