rx

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2016 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

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

Bool is the reactive wrapper for bool

func NewBool

func NewBool(v bool) *Bool

NewBool creates a new reactive object for the initial value of bool

func (*Bool) Bind

func (s *Bool) Bind(ctx context.Context, other *Bool) context.CancelFunc

Bind applies all changes to the 'other' Bool to this name and returns a CancelFunc for closure

func (*Bool) Get

func (rx *Bool) Get() bool

Get gets the bool

func (*Bool) Set

func (rx *Bool) Set(v bool)

Set sets the bool and notifies subscribers

func (*Bool) Subscribe

func (rx *Bool) Subscribe() *BoolSubscriber

Subscribe subscribes to changes on the bool

type BoolSubscriber

type BoolSubscriber struct {
	C <-chan bool
	// contains filtered or unexported fields
}

BoolSubscriber allows subscribing to the reactive bool

func (*BoolSubscriber) Close

func (s *BoolSubscriber) Close()

Close closes the subscription

type Int16

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

Int16 is the reactive wrapper for int16

func NewInt16

func NewInt16(v int16) *Int16

NewInt16 creates a new reactive object for the initial value of int16

func (*Int16) Bind

func (s *Int16) Bind(ctx context.Context, other *Int16) context.CancelFunc

Bind applies all changes to the 'other' Int16 to this name and returns a CancelFunc for closure

func (*Int16) Get

func (rx *Int16) Get() int16

Get gets the int16

func (*Int16) Set

func (rx *Int16) Set(v int16)

Set sets the int16 and notifies subscribers

func (*Int16) Subscribe

func (rx *Int16) Subscribe() *Int16Subscriber

Subscribe subscribes to changes on the int16

type Int16Subscriber

type Int16Subscriber struct {
	C <-chan int16
	// contains filtered or unexported fields
}

Int16Subscriber allows subscribing to the reactive int16

func (*Int16Subscriber) Close

func (s *Int16Subscriber) Close()

Close closes the subscription

type Int32

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

Int32 is the reactive wrapper for int32

func NewInt32

func NewInt32(v int32) *Int32

NewInt32 creates a new reactive object for the initial value of int32

func (*Int32) Bind

func (s *Int32) Bind(ctx context.Context, other *Int32) context.CancelFunc

Bind applies all changes to the 'other' Int32 to this name and returns a CancelFunc for closure

func (*Int32) Get

func (rx *Int32) Get() int32

Get gets the int32

func (*Int32) Set

func (rx *Int32) Set(v int32)

Set sets the int32 and notifies subscribers

func (*Int32) Subscribe

func (rx *Int32) Subscribe() *Int32Subscriber

Subscribe subscribes to changes on the int32

type Int32Subscriber

type Int32Subscriber struct {
	C <-chan int32
	// contains filtered or unexported fields
}

Int32Subscriber allows subscribing to the reactive int32

func (*Int32Subscriber) Close

func (s *Int32Subscriber) Close()

Close closes the subscription

type Int64

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

Int64 is the reactive wrapper for int64

func NewInt64

func NewInt64(v int64) *Int64

NewInt64 creates a new reactive object for the initial value of int64

func (*Int64) Bind

func (s *Int64) Bind(ctx context.Context, other *Int64) context.CancelFunc

Bind applies all changes to the 'other' Int64 to this name and returns a CancelFunc for closure

func (*Int64) Get

func (rx *Int64) Get() int64

Get gets the int64

func (*Int64) Set

func (rx *Int64) Set(v int64)

Set sets the int64 and notifies subscribers

func (*Int64) Subscribe

func (rx *Int64) Subscribe() *Int64Subscriber

Subscribe subscribes to changes on the int64

type Int64Subscriber

type Int64Subscriber struct {
	C <-chan int64
	// contains filtered or unexported fields
}

Int64Subscriber allows subscribing to the reactive int64

func (*Int64Subscriber) Close

func (s *Int64Subscriber) Close()

Close closes the subscription

type Int8

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

Int8 is the reactive wrapper for int8

func NewInt8

func NewInt8(v int8) *Int8

NewInt8 creates a new reactive object for the initial value of int8

func (*Int8) Bind

func (s *Int8) Bind(ctx context.Context, other *Int8) context.CancelFunc

Bind applies all changes to the 'other' Int8 to this name and returns a CancelFunc for closure

func (*Int8) Get

func (rx *Int8) Get() int8

Get gets the int8

func (*Int8) Set

func (rx *Int8) Set(v int8)

Set sets the int8 and notifies subscribers

func (*Int8) Subscribe

func (rx *Int8) Subscribe() *Int8Subscriber

Subscribe subscribes to changes on the int8

type Int8Subscriber

type Int8Subscriber struct {
	C <-chan int8
	// contains filtered or unexported fields
}

Int8Subscriber allows subscribing to the reactive int8

func (*Int8Subscriber) Close

func (s *Int8Subscriber) Close()

Close closes the subscription

type String

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

String is the reactive wrapper for string

func NewString

func NewString(v string) *String

NewString creates a new reactive object for the initial value of string

func (*String) Bind

func (s *String) Bind(ctx context.Context, other *String) context.CancelFunc

Bind applies all changes to the 'other' String to this name and returns a CancelFunc for closure

func (*String) Get

func (rx *String) Get() string

Get gets the string

func (*String) Set

func (rx *String) Set(v string)

Set sets the string and notifies subscribers

func (*String) Subscribe

func (rx *String) Subscribe() *StringSubscriber

Subscribe subscribes to changes on the string

type StringSubscriber

type StringSubscriber struct {
	C <-chan string
	// contains filtered or unexported fields
}

StringSubscriber allows subscribing to the reactive string

func (*StringSubscriber) Close

func (s *StringSubscriber) Close()

Close closes the subscription

type Uint16

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

Uint16 is the reactive wrapper for uint16

func NewUint16

func NewUint16(v uint16) *Uint16

NewUint16 creates a new reactive object for the initial value of uint16

func (*Uint16) Bind

func (s *Uint16) Bind(ctx context.Context, other *Uint16) context.CancelFunc

Bind applies all changes to the 'other' Uint16 to this name and returns a CancelFunc for closure

func (*Uint16) Get

func (rx *Uint16) Get() uint16

Get gets the uint16

func (*Uint16) Set

func (rx *Uint16) Set(v uint16)

Set sets the uint16 and notifies subscribers

func (*Uint16) Subscribe

func (rx *Uint16) Subscribe() *Uint16Subscriber

Subscribe subscribes to changes on the uint16

type Uint16Subscriber

type Uint16Subscriber struct {
	C <-chan uint16
	// contains filtered or unexported fields
}

Uint16Subscriber allows subscribing to the reactive uint16

func (*Uint16Subscriber) Close

func (s *Uint16Subscriber) Close()

Close closes the subscription

type Uint32

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

Uint32 is the reactive wrapper for uint32

func NewUint32

func NewUint32(v uint32) *Uint32

NewUint32 creates a new reactive object for the initial value of uint32

func (*Uint32) Bind

func (s *Uint32) Bind(ctx context.Context, other *Uint32) context.CancelFunc

Bind applies all changes to the 'other' Uint32 to this name and returns a CancelFunc for closure

func (*Uint32) Get

func (rx *Uint32) Get() uint32

Get gets the uint32

func (*Uint32) Set

func (rx *Uint32) Set(v uint32)

Set sets the uint32 and notifies subscribers

func (*Uint32) Subscribe

func (rx *Uint32) Subscribe() *Uint32Subscriber

Subscribe subscribes to changes on the uint32

type Uint32Subscriber

type Uint32Subscriber struct {
	C <-chan uint32
	// contains filtered or unexported fields
}

Uint32Subscriber allows subscribing to the reactive uint32

func (*Uint32Subscriber) Close

func (s *Uint32Subscriber) Close()

Close closes the subscription

type Uint64

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

Uint64 is the reactive wrapper for uint64

func NewUint64

func NewUint64(v uint64) *Uint64

NewUint64 creates a new reactive object for the initial value of uint64

func (*Uint64) Bind

func (s *Uint64) Bind(ctx context.Context, other *Uint64) context.CancelFunc

Bind applies all changes to the 'other' Uint64 to this name and returns a CancelFunc for closure

func (*Uint64) Get

func (rx *Uint64) Get() uint64

Get gets the uint64

func (*Uint64) Set

func (rx *Uint64) Set(v uint64)

Set sets the uint64 and notifies subscribers

func (*Uint64) Subscribe

func (rx *Uint64) Subscribe() *Uint64Subscriber

Subscribe subscribes to changes on the uint64

type Uint64Subscriber

type Uint64Subscriber struct {
	C <-chan uint64
	// contains filtered or unexported fields
}

Uint64Subscriber allows subscribing to the reactive uint64

func (*Uint64Subscriber) Close

func (s *Uint64Subscriber) Close()

Close closes the subscription

type Uint8

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

Uint8 is the reactive wrapper for uint8

func NewUint8

func NewUint8(v uint8) *Uint8

NewUint8 creates a new reactive object for the initial value of uint8

func (*Uint8) Bind

func (s *Uint8) Bind(ctx context.Context, other *Uint8) context.CancelFunc

Bind applies all changes to the 'other' Uint8 to this name and returns a CancelFunc for closure

func (*Uint8) Get

func (rx *Uint8) Get() uint8

Get gets the uint8

func (*Uint8) Set

func (rx *Uint8) Set(v uint8)

Set sets the uint8 and notifies subscribers

func (*Uint8) Subscribe

func (rx *Uint8) Subscribe() *Uint8Subscriber

Subscribe subscribes to changes on the uint8

type Uint8Subscriber

type Uint8Subscriber struct {
	C <-chan uint8
	// contains filtered or unexported fields
}

Uint8Subscriber allows subscribing to the reactive uint8

func (*Uint8Subscriber) Close

func (s *Uint8Subscriber) Close()

Close closes the subscription

Jump to

Keyboard shortcuts

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