thriftext

package
v0.0.0-...-78fbe0a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Notifier DataChangeNotifier
}

func (*Adapter) OnDataChange

func (t *Adapter) OnDataChange(newVal interface{}, src string) (err error)

type DataChangeNotifier

type DataChangeNotifier interface {
	OnChange(str string)
}

type DataListener

type DataListener interface {
	OnDataChange(newVal interface{}, src string) (err error)
}

type GetBytes

type GetBytes func() ([]byte, error)

type MultiNotifier

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

func NewMultiNotifier

func NewMultiNotifier() *MultiNotifier

func (*MultiNotifier) AddClient

func (p *MultiNotifier) AddClient(notifier DataChangeNotifier)

func (*MultiNotifier) OnChange

func (p *MultiNotifier) OnChange(src string)

type NoOp

type NoOp struct{}

func (*NoOp) OnChange

func (t *NoOp) OnChange(path string)

func (*NoOp) OnDataChange

func (t *NoOp) OnDataChange(newVal interface{}, path string) error

type SetBytes

type SetBytes func(value []byte) (path string, err error)

type ThreadCtx

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

func NewThreadCtx

func NewThreadCtx() *ThreadCtx

func (*ThreadCtx) ReadThrift

func (p *ThreadCtx) ReadThrift(get GetBytes, emptyStruct thrift.TStruct) error

func (*ThreadCtx) ReadThriftBytes

func (p *ThreadCtx) ReadThriftBytes(data []byte, emptyStruct thrift.TStruct) error

func (*ThreadCtx) SetThrift

func (p *ThreadCtx) SetThrift(set SetBytes, tStruct thrift.TStruct) (path string, err error)

func (*ThreadCtx) ToBytes

func (p *ThreadCtx) ToBytes(tStruct thrift.TStruct) ([]byte, error)

Jump to

Keyboard shortcuts

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