slim

package
v0.0.0-...-886a5b3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const EXEC = "slim"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	slim.ObjectImpl
	// contains filtered or unexported fields
}

func (*Cache) Copy

func (o *Cache) Copy() slim.Object

func (*Cache) Equals

func (o *Cache) Equals(x slim.Object) bool

func (*Cache) IndexGet

func (o *Cache) IndexGet(index slim.Object) (res slim.Object, err error)

IndexGet returns the value for the given key.

func (*Cache) IndexSet

func (o *Cache) IndexSet(index, value slim.Object) (err error)

IndexSet sets the value for the given key.

func (*Cache) IsFalsy

func (o *Cache) IsFalsy() bool

func (*Cache) String

func (o *Cache) String() string

func (*Cache) TypeName

func (o *Cache) TypeName() string

type DynamicModules

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

func NewDynamicModules

func NewDynamicModules(ss *SlimSlot, fnID string) *DynamicModules

func (*DynamicModules) Get

func (dm *DynamicModules) Get(name string) slim.Importable

type ModuleAttr

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

func NewModuleAttr

func NewModuleAttr(ss *SlimSlot) *ModuleAttr

func (*ModuleAttr) Module

func (m *ModuleAttr) Module() map[string]slim.Object

type ModuleClass

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

func NewModuleClass

func NewModuleClass(ss *SlimSlot) *ModuleClass

func (*ModuleClass) Module

func (m *ModuleClass) Module() map[string]slim.Object

type ModuleConst

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

func NewModuleConst

func NewModuleConst(ss *SlimSlot) *ModuleConst

func (*ModuleConst) Module

func (m *ModuleConst) Module() map[string]slim.Object

type ModuleControl

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

func NewModuleControl

func NewModuleControl(ss *SlimSlot) *ModuleControl

func (*ModuleControl) Module

func (m *ModuleControl) Module() map[string]slim.Object

type ModuleDevice

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

func NewModuleDevice

func NewModuleDevice(ss *SlimSlot) *ModuleDevice

func (*ModuleDevice) Module

func (m *ModuleDevice) Module() map[string]slim.Object

type ModuleDpds

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

func NewModuleDpds

func NewModuleDpds() *ModuleDpds

func (*ModuleDpds) Add

func (m *ModuleDpds) Add(logicId, procId string)

func (*ModuleDpds) Take

func (m *ModuleDpds) Take(logicId string) map[string]struct{}

type ModuleSource

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

func NewModuleSource

func NewModuleSource(ss *SlimSlot) *ModuleSource

func (*ModuleSource) Module

func (m *ModuleSource) Module() map[string]slim.Object

type ModuleTag

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

func NewModuleTag

func NewModuleTag(ss *SlimSlot) *ModuleTag

func (*ModuleTag) Module

func (m *ModuleTag) Module() map[string]slim.Object

type Proc

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

type SlimOption

type SlimOption interface {
	// contains filtered or unexported methods
}

func WithBBolt

func WithBBolt(file string) SlimOption

func WithCacheTTL

func WithCacheTTL(d time.Duration) SlimOption

func WithDebug

func WithDebug(debug bool) SlimOption

func WithTickerInterval

func WithTickerInterval(d time.Duration) SlimOption

type SlimSlot

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

func Slim

func Slim(es *edge.EdgeService, opts ...SlimOption) (*SlimSlot, error)

func (*SlimSlot) Start

func (ss *SlimSlot) Start()

func (*SlimSlot) Stop

func (ss *SlimSlot) Stop()

type SourceModule

type SourceModule struct {
	Name string
	// contains filtered or unexported fields
}

func (*SourceModule) Import

func (m *SourceModule) Import(name string) (interface{}, error)

Import returns a module source code.

type Store

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

func NewStore

func NewStore(ss *SlimSlot, ttl time.Duration) (*Store, error)

func (*Store) AutoGC

func (s *Store) AutoGC(duration time.Duration) chan<- struct{}

func (*Store) Cache

func (s *Store) Cache() *Cache

func (*Store) Module

func (s *Store) Module() map[string]slim.Object

Jump to

Keyboard shortcuts

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