change

package
v0.0.0-...-9b4e82f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PublicSubscribeChange = duplicator.MakeDuplicator("subscribe-outputs")
)

Functions

func RegisterPrivateChangeDetect

func RegisterPrivateChangeDetect(o id.Identifiable, update chan interface{}) error

func RegisterPublicChangeDetect

func RegisterPublicChangeDetect(o id.Identifiable) error

func StartDetectChanges

func StartDetectChanges()

func Test

func Test()

func UnregisterChangeDetect

func UnregisterChangeDetect(o id.Identifiable)

Types

type ChangeField

type ChangeField struct {
	Field string      `json:"field"`
	Value interface{} `json:"value"`
}

type ChangeNotify

type ChangeNotify struct {
	Type    string          `json:"type"`
	Id      string          `json:"uuid"`
	Changes []*ChangeField  `json:"changes"`
	Object  id.Identifiable `json:"-"`
}

func (*ChangeNotify) GetId

func (cn *ChangeNotify) GetId() string

func (*ChangeNotify) GetType

func (cn *ChangeNotify) GetType() string

type SubscribeUpdate

type SubscribeUpdate struct {
	Type string
	Id   string

	TargetOutput chan interface{} `json:"-"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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