blackboard

package
v0.0.0-...-dcab76a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT, MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKey  = errors.New("Invalid Key")
	ErrInvalidType = errors.New("Invalid Type")
)

Functions

This section is empty.

Types

type BlackBoard

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

func NewBlackboard

func NewBlackboard() *BlackBoard

func (*BlackBoard) GetValueAsBool

func (b *BlackBoard) GetValueAsBool(key int) (bool, error)

* GetValueAsBool, SetValueAsBool * GetValueAsInt, SetValueAsInt * GetValueAsFloat, SetValueAsFloat * GetValueAsString, SetValueAsString * GetValuesAsInterface, SetValuesAsInterface

func (*BlackBoard) GetValueAsFloat32

func (b *BlackBoard) GetValueAsFloat32(key int) (float32, error)

func (*BlackBoard) GetValueAsFloat64

func (b *BlackBoard) GetValueAsFloat64(key int) (float64, error)

func (*BlackBoard) GetValueAsInt

func (b *BlackBoard) GetValueAsInt(key int) (int, error)

func (*BlackBoard) GetValueAsInterface

func (b *BlackBoard) GetValueAsInterface(key int) (interface{}, error)

func (*BlackBoard) GetValueAsString

func (b *BlackBoard) GetValueAsString(key int) (string, error)

func (*BlackBoard) SetValueAsBool

func (b *BlackBoard) SetValueAsBool(key int, v bool)

func (*BlackBoard) SetValueAsFloat32

func (b *BlackBoard) SetValueAsFloat32(key int, v float32)

func (*BlackBoard) SetValueAsFloat64

func (b *BlackBoard) SetValueAsFloat64(key int, v float64)

func (*BlackBoard) SetValueAsInt

func (b *BlackBoard) SetValueAsInt(key int, v int)

func (*BlackBoard) SetValueAsInterface

func (b *BlackBoard) SetValueAsInterface(key int, v interface{})

func (*BlackBoard) SetValueAsString

func (b *BlackBoard) SetValueAsString(key int, v string)

type IBlackBoard

type IBlackBoard interface{}

Jump to

Keyboard shortcuts

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