presets

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get() (*vo.Online, error)
}

Cache ... [inject:"#PresetCache"]

type CacheProvider

type CacheProvider struct {
	markup.Component ` id:"PresetCache"  class:"wpm-cache-provider"`

	AC application.Context `inject:"context"`

	CS service.CacheService `inject:"#CacheService"`

	HTC service.HTTPClientExService `inject:"#HTTPClientExService"`

	ListFileName string `inject:"${wpm.presets.list-file-name}"`
}

CacheProvider ... for Presets

func (*CacheProvider) ClassName

func (inst *CacheProvider) ClassName() string

ClassName 缓存类型名称

func (*CacheProvider) Get

func (inst *CacheProvider) Get() (*vo.Online, error)

Get ...

func (*CacheProvider) ListProviderRegistrations

func (inst *CacheProvider) ListProviderRegistrations() []*caches.ProviderRegistration

ListProviderRegistrations ...

func (*CacheProvider) New

func (inst *CacheProvider) New() (any, error)

New ...

type ImpPresetService

type ImpPresetService struct {
	markup.Component `id:"PresetService"`

	Cache Cache `inject:"#PresetCache"`
}

ImpPresetService ...

func (*ImpPresetService) GetPresets

func (inst *ImpPresetService) GetPresets() (*vo.Online, error)

GetPresets ...

Jump to

Keyboard shortcuts

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