Documentation ¶
Index ¶
- Constants
- func InitCache(c Cache)
- func LoadCacheModule() (starlark.StringDict, error)
- func LoadModule() (starlark.StringDict, error)
- func LoadXPathModule() (starlark.StringDict, error)
- type AnimatedPositioned
- func (ap AnimatedPositioned) AsRenderWidget() render.Widget
- func (ap AnimatedPositioned) Attr(name string) (starlark.Value, error)
- func (ap AnimatedPositioned) AttrNames() []string
- func (ap AnimatedPositioned) Freeze()
- func (ap AnimatedPositioned) Hash() (uint32, error)
- func (ap AnimatedPositioned) String() string
- func (ap AnimatedPositioned) Truth() starlark.Bool
- func (ap AnimatedPositioned) Type() string
- type Animation
- func (w *Animation) AsRenderWidget() render.Widget
- func (w *Animation) Attr(name string) (starlark.Value, error)
- func (w *Animation) AttrNames() []string
- func (w *Animation) Freeze()
- func (w *Animation) Hash() (uint32, error)
- func (w *Animation) String() string
- func (w *Animation) Truth() starlark.Bool
- func (w *Animation) Type() string
- type Applet
- func (a *Applet) Call(callable *starlark.Function, args starlark.Tuple, ...) (val starlark.Value, err error)
- func (app *Applet) CallSchemaHandler(ctx context.Context, fieldId, parameter string) (result string, err error)
- func (app *Applet) GetSchema() string
- func (a *Applet) Load(filename string, src []byte, loader ModuleLoader) (err error)
- func (a *Applet) Run(config map[string]string, initializers ...ThreadInitializer) (roots []render.Root, err error)
- type Box
- type Cache
- type Circle
- func (w *Circle) AsRenderWidget() render.Widget
- func (w *Circle) Attr(name string) (starlark.Value, error)
- func (w *Circle) AttrNames() []string
- func (w *Circle) Freeze()
- func (w *Circle) Hash() (uint32, error)
- func (w *Circle) String() string
- func (w *Circle) Truth() starlark.Bool
- func (w *Circle) Type() string
- type Column
- func (w *Column) AsRenderWidget() render.Widget
- func (w *Column) Attr(name string) (starlark.Value, error)
- func (w *Column) AttrNames() []string
- func (w *Column) Freeze()
- func (w *Column) Hash() (uint32, error)
- func (w *Column) String() string
- func (w *Column) Truth() starlark.Bool
- func (w *Column) Type() string
- type Image
- func (w *Image) AsRenderWidget() render.Widget
- func (w *Image) Attr(name string) (starlark.Value, error)
- func (w *Image) AttrNames() []string
- func (w *Image) Freeze()
- func (w *Image) Hash() (uint32, error)
- func (w *Image) String() string
- func (w *Image) Truth() starlark.Bool
- func (w *Image) Type() string
- type InMemoryCache
- type InMemoryCacheRecord
- type Marquee
- func (w *Marquee) AsRenderWidget() render.Widget
- func (w *Marquee) Attr(name string) (starlark.Value, error)
- func (w *Marquee) AttrNames() []string
- func (w *Marquee) Freeze()
- func (w *Marquee) Hash() (uint32, error)
- func (w *Marquee) String() string
- func (w *Marquee) Truth() starlark.Bool
- func (w *Marquee) Type() string
- type ModuleLoader
- type Padding
- func (w *Padding) AsRenderWidget() render.Widget
- func (w *Padding) Attr(name string) (starlark.Value, error)
- func (w *Padding) AttrNames() []string
- func (w *Padding) Freeze()
- func (w *Padding) Hash() (uint32, error)
- func (w *Padding) String() string
- func (w *Padding) Truth() starlark.Bool
- func (w *Padding) Type() string
- type Plot
- type Root
- type Row
- type Stack
- func (w *Stack) AsRenderWidget() render.Widget
- func (w *Stack) Attr(name string) (starlark.Value, error)
- func (w *Stack) AttrNames() []string
- func (w *Stack) Freeze()
- func (w *Stack) Hash() (uint32, error)
- func (w *Stack) String() string
- func (w *Stack) Truth() starlark.Bool
- func (w *Stack) Type() string
- type Text
- type ThreadInitializer
- type Widget
- type WrappedText
- func (w *WrappedText) AsRenderWidget() render.Widget
- func (w *WrappedText) Attr(name string) (starlark.Value, error)
- func (w *WrappedText) AttrNames() []string
- func (w *WrappedText) Freeze()
- func (w *WrappedText) Hash() (uint32, error)
- func (w *WrappedText) String() string
- func (w *WrappedText) Truth() starlark.Bool
- func (w *WrappedText) Type() string
- type XPath
Constants ¶
View Source
const DefaultExpirationSeconds = 60
View Source
const (
ModuleName = "render"
)
Variables ¶
This section is empty.
Functions ¶
func LoadCacheModule ¶
func LoadCacheModule() (starlark.StringDict, error)
func LoadModule ¶
func LoadModule() (starlark.StringDict, error)
func LoadXPathModule ¶ added in v0.4.3
func LoadXPathModule() (starlark.StringDict, error)
Types ¶
type AnimatedPositioned ¶
type AnimatedPositioned struct { Widget animation.AnimatedPositioned }
func (AnimatedPositioned) AsRenderWidget ¶
func (ap AnimatedPositioned) AsRenderWidget() render.Widget
func (AnimatedPositioned) Attr ¶
func (ap AnimatedPositioned) Attr(name string) (starlark.Value, error)
func (AnimatedPositioned) AttrNames ¶
func (ap AnimatedPositioned) AttrNames() []string
func (AnimatedPositioned) Freeze ¶
func (ap AnimatedPositioned) Freeze()
func (AnimatedPositioned) Hash ¶
func (ap AnimatedPositioned) Hash() (uint32, error)
func (AnimatedPositioned) String ¶
func (ap AnimatedPositioned) String() string
func (AnimatedPositioned) Truth ¶
func (ap AnimatedPositioned) Truth() starlark.Bool
func (AnimatedPositioned) Type ¶
func (ap AnimatedPositioned) Type() string
type Animation ¶
func (*Animation) AsRenderWidget ¶
type Applet ¶
type Applet struct { Filename string Id string Globals starlark.StringDict // contains filtered or unexported fields }
func (*Applet) Call ¶
func (a *Applet) Call(callable *starlark.Function, args starlark.Tuple, initializers ...ThreadInitializer) (val starlark.Value, err error)
Calls any callable from Applet.Globals. Pass args and receive a starlark Value, or an error if you're unlucky.
func (*Applet) CallSchemaHandler ¶ added in v0.10.0
func (app *Applet) CallSchemaHandler(ctx context.Context, fieldId, parameter string) (result string, err error)
CallSchemaHandler calls the schema handler for a field, passing it a single string parameter and returning a single string value.
func (*Applet) Load ¶
func (a *Applet) Load(filename string, src []byte, loader ModuleLoader) (err error)
Loads an applet. The script filename is used as a descriptor only, and the actual code should be passed in src. Optionally also pass loader to make additional starlark modules available to the script.
type Box ¶
func (*Box) AsRenderWidget ¶
type Circle ¶
func (*Circle) AsRenderWidget ¶
type Column ¶
func (*Column) AsRenderWidget ¶
type Image ¶
func (*Image) AsRenderWidget ¶
type InMemoryCache ¶
type InMemoryCache struct {
// contains filtered or unexported fields
}
func NewInMemoryCache ¶
func NewInMemoryCache() *InMemoryCache
type InMemoryCacheRecord ¶
type InMemoryCacheRecord struct {
// contains filtered or unexported fields
}
type Marquee ¶
func (*Marquee) AsRenderWidget ¶
type ModuleLoader ¶
type Padding ¶
func (*Padding) AsRenderWidget ¶
type Plot ¶
func (Plot) AsRenderWidget ¶
type Root ¶
func (Root) AsRenderRoot ¶
type Row ¶
func (*Row) AsRenderWidget ¶
type Stack ¶
func (*Stack) AsRenderWidget ¶
type Text ¶
func (*Text) AsRenderWidget ¶
type ThreadInitializer ¶ added in v0.5.1
ThreadInitializer is called when building a Starlark thread to run an applet on. It can customize the thread by overriding behavior or attaching thread local data.
type WrappedText ¶
type WrappedText struct { Widget render.WrappedText }
func (*WrappedText) AsRenderWidget ¶
func (w *WrappedText) AsRenderWidget() render.Widget
func (*WrappedText) AttrNames ¶
func (w *WrappedText) AttrNames() []string
func (*WrappedText) Freeze ¶
func (w *WrappedText) Freeze()
func (*WrappedText) Hash ¶
func (w *WrappedText) Hash() (uint32, error)
func (*WrappedText) String ¶
func (w *WrappedText) String() string
func (*WrappedText) Truth ¶
func (w *WrappedText) Truth() starlark.Bool
func (*WrappedText) Type ¶
func (w *WrappedText) Type() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.