contexts

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextSet

type ContextSet struct {
	Data map[string]*NamedContext
}

func Merge

func Merge(contextSets ...*ContextSet) *ContextSet

func NewContextSet

func NewContextSet() *ContextSet

func NewContextSetFromProto

func NewContextSetFromProto(protoContextSet *prefabProto.ContextSet) *ContextSet

func (*ContextSet) GetContextValue

func (cs *ContextSet) GetContextValue(propertyName string) (any, bool)

func (*ContextSet) GroupedKey added in v0.0.7

func (cs *ContextSet) GroupedKey() string

func (*ContextSet) SetNamedContext

func (cs *ContextSet) SetNamedContext(newNamedContext *NamedContext)

func (*ContextSet) ToProto added in v0.0.7

func (cs *ContextSet) ToProto() *prefabProto.ContextSet

func (*ContextSet) WithNamedContext

func (cs *ContextSet) WithNamedContext(newNamedContext *NamedContext) *ContextSet

func (*ContextSet) WithNamedContextValues

func (cs *ContextSet) WithNamedContextValues(name string, values map[string]interface{}) *ContextSet

type NamedContext

type NamedContext struct {
	Data map[string]any
	Name string
}

func NewNamedContext

func NewNamedContext() *NamedContext

func NewNamedContextFromProto

func NewNamedContextFromProto(ctx *prefabProto.Context) *NamedContext

func NewNamedContextWithValues

func NewNamedContextWithValues(name string, values map[string]any) *NamedContext

func (*NamedContext) ToProto added in v0.0.7

func (nc *NamedContext) ToProto() *prefabProto.Context

Jump to

Keyboard shortcuts

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