proto

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: GPL-3.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnounceModify

func AnnounceModify(fn AnnounceModifyFunc) state.ModifyFunc

func AnnouncePeek

func AnnouncePeek(fn AnnouncePeekFunc) state.PeekFunc

func EnvelopeBeatInfoPeek

func EnvelopeBeatInfoPeek(fn EnvelopeBeatInfoPeekFunc) state.PeekFunc

func EnvelopeBeatTickPeek

func EnvelopeBeatTickPeek(fn EnvelopeBeatTickPeekFunc) state.PeekFunc

func EnvelopeRecordUpdatePeek

func EnvelopeRecordUpdatePeek(fn EnvelopeRecordUpdatePeekFunc) state.PeekFunc

func NewID

func NewID() string

func NewIDBytes

func NewIDBytes() []byte

func RecordModify

func RecordModify(fn RecordModifyFunc) state.ModifyFunc

func RecordPeek

func RecordPeek(fn RecordPeekFunc) state.PeekFunc

func WriteID

func WriteID(dst []byte) ([]byte, error)

Types

type Announce

type Announce C.Struct

func AutoNewAnnounce

func AutoNewAnnounce(s *C.Segment) Announce

func NewAnnounce

func NewAnnounce(s *C.Segment) Announce

func NewRootAnnounce

func NewRootAnnounce(s *C.Segment) Announce

func ReadRootAnnounce

func ReadRootAnnounce(s *C.Segment) Announce

func UnpackAnnounce

func UnpackAnnounce(data []byte) (Announce, error)

func (Announce) Envelope

func (s Announce) Envelope() []byte

func (Announce) Id

func (s Announce) Id() string

func (Announce) IdBytes

func (s Announce) IdBytes() []byte

func (Announce) MarshalCapLit

func (s Announce) MarshalCapLit() ([]byte, error)

func (Announce) MarshalJSON

func (s Announce) MarshalJSON() ([]byte, error)

func (Announce) NodeID

func (s Announce) NodeID() string

func (Announce) NodeIDBytes

func (s Announce) NodeIDBytes() []byte

func (Announce) SetEnvelope

func (s Announce) SetEnvelope(v []byte)

func (Announce) SetId

func (s Announce) SetId(v string)

func (Announce) SetNodeID

func (s Announce) SetNodeID(v string)

func (Announce) SetSignature

func (s Announce) SetSignature(v string)

func (Announce) SetTimestamp

func (s Announce) SetTimestamp(v int64)

func (Announce) SetType

func (s Announce) SetType(v AnnounceType)

func (Announce) Signature

func (s Announce) Signature() string

func (Announce) SignatureBytes

func (s Announce) SignatureBytes() []byte

func (Announce) Timestamp

func (s Announce) Timestamp() int64

func (Announce) Type

func (s Announce) Type() AnnounceType

func (Announce) WriteCapLit

func (s Announce) WriteCapLit(w io.Writer) error

func (Announce) WriteJSON

func (s Announce) WriteJSON(w io.Writer) error

type AnnounceModifyFunc

type AnnounceModifyFunc func(key *state.Key, v *Announce) (*Announce, error)

type AnnouncePeekFunc

type AnnouncePeekFunc func(key *state.Key, v *Announce) error

type AnnounceType

type AnnounceType uint16
const (
	ANNOUNCETYPE_UNKNOWN      AnnounceType = 0
	ANNOUNCETYPE_BEATTICK     AnnounceType = 1
	ANNOUNCETYPE_BEATINFO     AnnounceType = 2
	ANNOUNCETYPE_RECORDUPDATE AnnounceType = 3
)

func AnnounceTypeFromString

func AnnounceTypeFromString(c string) AnnounceType

func (AnnounceType) MarshalCapLit

func (s AnnounceType) MarshalCapLit() ([]byte, error)

func (AnnounceType) MarshalJSON

func (s AnnounceType) MarshalJSON() ([]byte, error)

func (AnnounceType) String

func (c AnnounceType) String() string

func (AnnounceType) WriteCapLit

func (s AnnounceType) WriteCapLit(w io.Writer) error

func (AnnounceType) WriteJSON

func (s AnnounceType) WriteJSON(w io.Writer) error

type AnnounceType_List

type AnnounceType_List C.PointerList

func NewAnnounceTypeList

func NewAnnounceTypeList(s *C.Segment, sz int) AnnounceType_List

func (AnnounceType_List) At

func (AnnounceType_List) Len

func (s AnnounceType_List) Len() int

func (AnnounceType_List) Set

func (s AnnounceType_List) Set(i int, item AnnounceType)

func (AnnounceType_List) ToArray

func (s AnnounceType_List) ToArray() []AnnounceType

type Announce_List

type Announce_List C.PointerList

func NewAnnounceList

func NewAnnounceList(s *C.Segment, sz int) Announce_List

func (Announce_List) At

func (s Announce_List) At(i int) Announce

func (Announce_List) Len

func (s Announce_List) Len() int

func (Announce_List) Set

func (s Announce_List) Set(i int, item Announce)

func (Announce_List) ToArray

func (s Announce_List) ToArray() []Announce

type EnvelopeBeatInfo

type EnvelopeBeatInfo C.Struct

func AutoNewEnvelopeBeatInfo

func AutoNewEnvelopeBeatInfo(s *C.Segment) EnvelopeBeatInfo

func NewEnvelopeBeatInfo

func NewEnvelopeBeatInfo(s *C.Segment) EnvelopeBeatInfo

func NewRootEnvelopeBeatInfo

func NewRootEnvelopeBeatInfo(s *C.Segment) EnvelopeBeatInfo

func ReadRootEnvelopeBeatInfo

func ReadRootEnvelopeBeatInfo(s *C.Segment) EnvelopeBeatInfo

func UnpackEnvelopeBeatInfo

func UnpackEnvelopeBeatInfo(data []byte) (EnvelopeBeatInfo, error)

func (EnvelopeBeatInfo) EthereumAddr

func (s EnvelopeBeatInfo) EthereumAddr() string

func (EnvelopeBeatInfo) EthereumAddrBytes

func (s EnvelopeBeatInfo) EthereumAddrBytes() []byte

func (EnvelopeBeatInfo) Id

func (s EnvelopeBeatInfo) Id() string

func (EnvelopeBeatInfo) IdBytes

func (s EnvelopeBeatInfo) IdBytes() []byte

func (EnvelopeBeatInfo) InboundWork

func (s EnvelopeBeatInfo) InboundWork() uint64

func (EnvelopeBeatInfo) MarshalCapLit

func (s EnvelopeBeatInfo) MarshalCapLit() ([]byte, error)

func (EnvelopeBeatInfo) MarshalJSON

func (s EnvelopeBeatInfo) MarshalJSON() ([]byte, error)

func (EnvelopeBeatInfo) OutboundWork

func (s EnvelopeBeatInfo) OutboundWork() uint64

func (EnvelopeBeatInfo) Session

func (s EnvelopeBeatInfo) Session() string

func (EnvelopeBeatInfo) SessionBytes

func (s EnvelopeBeatInfo) SessionBytes() []byte

func (EnvelopeBeatInfo) SetEthereumAddr

func (s EnvelopeBeatInfo) SetEthereumAddr(v string)

func (EnvelopeBeatInfo) SetId

func (s EnvelopeBeatInfo) SetId(v string)

func (EnvelopeBeatInfo) SetInboundWork

func (s EnvelopeBeatInfo) SetInboundWork(v uint64)

func (EnvelopeBeatInfo) SetOutboundWork

func (s EnvelopeBeatInfo) SetOutboundWork(v uint64)

func (EnvelopeBeatInfo) SetSession

func (s EnvelopeBeatInfo) SetSession(v string)

func (EnvelopeBeatInfo) SetUptimeUnix

func (s EnvelopeBeatInfo) SetUptimeUnix(v int64)

func (EnvelopeBeatInfo) UptimeUnix

func (s EnvelopeBeatInfo) UptimeUnix() int64

func (EnvelopeBeatInfo) WriteCapLit

func (s EnvelopeBeatInfo) WriteCapLit(w io.Writer) error

func (EnvelopeBeatInfo) WriteJSON

func (s EnvelopeBeatInfo) WriteJSON(w io.Writer) error

type EnvelopeBeatInfoModifyFunc

type EnvelopeBeatInfoModifyFunc func(key *state.Key, v *EnvelopeBeatInfo) (*EnvelopeBeatInfo, error)

type EnvelopeBeatInfoPeekFunc

type EnvelopeBeatInfoPeekFunc func(key *state.Key, v *EnvelopeBeatInfo) error

type EnvelopeBeatInfo_List

type EnvelopeBeatInfo_List C.PointerList

func NewEnvelopeBeatInfoList

func NewEnvelopeBeatInfoList(s *C.Segment, sz int) EnvelopeBeatInfo_List

func (EnvelopeBeatInfo_List) At

func (EnvelopeBeatInfo_List) Len

func (s EnvelopeBeatInfo_List) Len() int

func (EnvelopeBeatInfo_List) Set

func (EnvelopeBeatInfo_List) ToArray

type EnvelopeBeatTick

type EnvelopeBeatTick C.Struct

func AutoNewEnvelopeBeatTick

func AutoNewEnvelopeBeatTick(s *C.Segment) EnvelopeBeatTick

func NewEnvelopeBeatTick

func NewEnvelopeBeatTick(s *C.Segment) EnvelopeBeatTick

func NewRootEnvelopeBeatTick

func NewRootEnvelopeBeatTick(s *C.Segment) EnvelopeBeatTick

func ReadRootEnvelopeBeatTick

func ReadRootEnvelopeBeatTick(s *C.Segment) EnvelopeBeatTick

func UnpackEnvelopeBeatTick

func UnpackEnvelopeBeatTick(data []byte) (EnvelopeBeatTick, error)

func (EnvelopeBeatTick) Id

func (s EnvelopeBeatTick) Id() string

func (EnvelopeBeatTick) IdBytes

func (s EnvelopeBeatTick) IdBytes() []byte

func (EnvelopeBeatTick) MarshalCapLit

func (s EnvelopeBeatTick) MarshalCapLit() ([]byte, error)

func (EnvelopeBeatTick) MarshalJSON

func (s EnvelopeBeatTick) MarshalJSON() ([]byte, error)

func (EnvelopeBeatTick) Session

func (s EnvelopeBeatTick) Session() string

func (EnvelopeBeatTick) SessionBytes

func (s EnvelopeBeatTick) SessionBytes() []byte

func (EnvelopeBeatTick) SetId

func (s EnvelopeBeatTick) SetId(v string)

func (EnvelopeBeatTick) SetSession

func (s EnvelopeBeatTick) SetSession(v string)

func (EnvelopeBeatTick) WriteCapLit

func (s EnvelopeBeatTick) WriteCapLit(w io.Writer) error

func (EnvelopeBeatTick) WriteJSON

func (s EnvelopeBeatTick) WriteJSON(w io.Writer) error

type EnvelopeBeatTickModifyFunc

type EnvelopeBeatTickModifyFunc func(key *state.Key, v *EnvelopeBeatTick) (*EnvelopeBeatTick, error)

type EnvelopeBeatTickPeekFunc

type EnvelopeBeatTickPeekFunc func(key *state.Key, v *EnvelopeBeatTick) error

type EnvelopeBeatTick_List

type EnvelopeBeatTick_List C.PointerList

func NewEnvelopeBeatTickList

func NewEnvelopeBeatTickList(s *C.Segment, sz int) EnvelopeBeatTick_List

func (EnvelopeBeatTick_List) At

func (EnvelopeBeatTick_List) Len

func (s EnvelopeBeatTick_List) Len() int

func (EnvelopeBeatTick_List) Set

func (EnvelopeBeatTick_List) ToArray

type EnvelopeRecordUpdate

type EnvelopeRecordUpdate C.Struct

func AutoNewEnvelopeRecordUpdate

func AutoNewEnvelopeRecordUpdate(s *C.Segment) EnvelopeRecordUpdate

func NewEnvelopeRecordUpdate

func NewEnvelopeRecordUpdate(s *C.Segment) EnvelopeRecordUpdate

func NewRootEnvelopeRecordUpdate

func NewRootEnvelopeRecordUpdate(s *C.Segment) EnvelopeRecordUpdate

func ReadRootEnvelopeRecordUpdate

func ReadRootEnvelopeRecordUpdate(s *C.Segment) EnvelopeRecordUpdate

func UnpackEnvelopeRecordUpdate

func UnpackEnvelopeRecordUpdate(data []byte) (EnvelopeRecordUpdate, error)

func (*EnvelopeRecordUpdate) Compare

func (EnvelopeRecordUpdate) Id

func (EnvelopeRecordUpdate) IdBytes

func (s EnvelopeRecordUpdate) IdBytes() []byte

func (EnvelopeRecordUpdate) MarshalCapLit

func (s EnvelopeRecordUpdate) MarshalCapLit() ([]byte, error)

func (EnvelopeRecordUpdate) MarshalJSON

func (s EnvelopeRecordUpdate) MarshalJSON() ([]byte, error)

func (EnvelopeRecordUpdate) SetId

func (s EnvelopeRecordUpdate) SetId(v string)

func (EnvelopeRecordUpdate) SetVersion

func (s EnvelopeRecordUpdate) SetVersion(v string)

func (EnvelopeRecordUpdate) SetVersionPrev

func (s EnvelopeRecordUpdate) SetVersionPrev(v string)

func (EnvelopeRecordUpdate) Version

func (s EnvelopeRecordUpdate) Version() string

func (EnvelopeRecordUpdate) VersionBytes

func (s EnvelopeRecordUpdate) VersionBytes() []byte

func (EnvelopeRecordUpdate) VersionPrev

func (s EnvelopeRecordUpdate) VersionPrev() string

func (EnvelopeRecordUpdate) VersionPrevBytes

func (s EnvelopeRecordUpdate) VersionPrevBytes() []byte

func (EnvelopeRecordUpdate) WriteCapLit

func (s EnvelopeRecordUpdate) WriteCapLit(w io.Writer) error

func (EnvelopeRecordUpdate) WriteJSON

func (s EnvelopeRecordUpdate) WriteJSON(w io.Writer) error

type EnvelopeRecordUpdateModifyFunc

type EnvelopeRecordUpdateModifyFunc func(key *state.Key, v *EnvelopeRecordUpdate) (*EnvelopeRecordUpdate, error)

type EnvelopeRecordUpdatePeekFunc

type EnvelopeRecordUpdatePeekFunc func(key *state.Key, v *EnvelopeRecordUpdate) error

type EnvelopeRecordUpdate_List

type EnvelopeRecordUpdate_List C.PointerList

func NewEnvelopeRecordUpdateList

func NewEnvelopeRecordUpdateList(s *C.Segment, sz int) EnvelopeRecordUpdate_List

func (EnvelopeRecordUpdate_List) At

func (EnvelopeRecordUpdate_List) Len

func (EnvelopeRecordUpdate_List) Set

func (EnvelopeRecordUpdate_List) ToArray

type ObjectMeta

type ObjectMeta C.Struct

func AutoNewObjectMeta

func AutoNewObjectMeta(s *C.Segment) ObjectMeta

func NewObjectMeta

func NewObjectMeta(s *C.Segment) ObjectMeta

func NewRootObjectMeta

func NewRootObjectMeta(s *C.Segment) ObjectMeta

func ReadRootObjectMeta

func ReadRootObjectMeta(s *C.Segment) ObjectMeta

func (ObjectMeta) CreatedAt

func (s ObjectMeta) CreatedAt() int64

func (ObjectMeta) Id

func (s ObjectMeta) Id() string

func (ObjectMeta) IdBytes

func (s ObjectMeta) IdBytes() []byte

func (ObjectMeta) IsDeleted

func (s ObjectMeta) IsDeleted() bool

func (ObjectMeta) MarshalCapLit

func (s ObjectMeta) MarshalCapLit() ([]byte, error)

func (ObjectMeta) MarshalJSON

func (s ObjectMeta) MarshalJSON() ([]byte, error)

func (ObjectMeta) Path

func (s ObjectMeta) Path() string

func (ObjectMeta) PathBytes

func (s ObjectMeta) PathBytes() []byte

func (ObjectMeta) SetCreatedAt

func (s ObjectMeta) SetCreatedAt(v int64)

func (ObjectMeta) SetId

func (s ObjectMeta) SetId(v string)

func (ObjectMeta) SetIsDeleted

func (s ObjectMeta) SetIsDeleted(v bool)

func (ObjectMeta) SetPath

func (s ObjectMeta) SetPath(v string)

func (ObjectMeta) SetSize

func (s ObjectMeta) SetSize(v int64)

func (ObjectMeta) SetUserMeta

func (s ObjectMeta) SetUserMeta(v string)

func (ObjectMeta) SetVersion

func (s ObjectMeta) SetVersion(v string)

func (ObjectMeta) SetVersionPrevious

func (s ObjectMeta) SetVersionPrevious(v string)

func (ObjectMeta) Size

func (s ObjectMeta) Size() int64

func (ObjectMeta) UserMeta

func (s ObjectMeta) UserMeta() string

func (ObjectMeta) UserMetaBytes

func (s ObjectMeta) UserMetaBytes() []byte

func (ObjectMeta) Version

func (s ObjectMeta) Version() string

func (ObjectMeta) VersionBytes

func (s ObjectMeta) VersionBytes() []byte

func (ObjectMeta) VersionPrevious

func (s ObjectMeta) VersionPrevious() string

func (ObjectMeta) VersionPreviousBytes

func (s ObjectMeta) VersionPreviousBytes() []byte

func (ObjectMeta) WriteCapLit

func (s ObjectMeta) WriteCapLit(w io.Writer) error

func (ObjectMeta) WriteJSON

func (s ObjectMeta) WriteJSON(w io.Writer) error

type ObjectMeta_List

type ObjectMeta_List C.PointerList

func NewObjectMetaList

func NewObjectMetaList(s *C.Segment, sz int) ObjectMeta_List

func (ObjectMeta_List) At

func (s ObjectMeta_List) At(i int) ObjectMeta

func (ObjectMeta_List) Len

func (s ObjectMeta_List) Len() int

func (ObjectMeta_List) Set

func (s ObjectMeta_List) Set(i int, item ObjectMeta)

func (ObjectMeta_List) ToArray

func (s ObjectMeta_List) ToArray() []ObjectMeta

type Record

type Record C.Struct

func AutoNewRecord

func AutoNewRecord(s *C.Segment) Record

func NewRecord

func NewRecord(s *C.Segment) Record

func NewRootRecord

func NewRootRecord(s *C.Segment) Record

func ReadRootRecord

func ReadRootRecord(s *C.Segment) Record

func (*Record) AnnounceEnvelope

func (r *Record) AnnounceEnvelope() (*EnvelopeRecordUpdate, error)

func (Record) CreatedAt

func (s Record) CreatedAt() int64

func (Record) Current

func (s Record) Current() RecordVersion

func (Record) Id

func (s Record) Id() string

func (Record) IdBytes

func (s Record) IdBytes() []byte

func (Record) MarshalCapLit

func (s Record) MarshalCapLit() ([]byte, error)

func (Record) MarshalJSON

func (s Record) MarshalJSON() ([]byte, error)

func (Record) Path

func (s Record) Path() string

func (Record) PathBytes

func (s Record) PathBytes() []byte

func (Record) Previous

func (s Record) Previous() RecordVersion_List

func (Record) SetCreatedAt

func (s Record) SetCreatedAt(v int64)

func (Record) SetCurrent

func (s Record) SetCurrent(v RecordVersion)

func (Record) SetId

func (s Record) SetId(v string)

func (Record) SetPath

func (s Record) SetPath(v string)

func (Record) SetPrevious

func (s Record) SetPrevious(v RecordVersion_List)

func (Record) WriteCapLit

func (s Record) WriteCapLit(w io.Writer) error

func (Record) WriteJSON

func (s Record) WriteJSON(w io.Writer) error

type RecordModifyFunc

type RecordModifyFunc func(key *state.Key, v *Record) (*Record, error)

type RecordPeekFunc

type RecordPeekFunc func(key *state.Key, v *Record) error

type RecordVersion

type RecordVersion C.Struct

func AutoNewRecordVersion

func AutoNewRecordVersion(s *C.Segment) RecordVersion

func NewRecordVersion

func NewRecordVersion(s *C.Segment) RecordVersion

func NewRootRecordVersion

func NewRootRecordVersion(s *C.Segment) RecordVersion

func ReadRootRecordVersion

func ReadRootRecordVersion(s *C.Segment) RecordVersion

func (RecordVersion) Announce

func (s RecordVersion) Announce() Announce

func (RecordVersion) MarshalCapLit

func (s RecordVersion) MarshalCapLit() ([]byte, error)

func (RecordVersion) MarshalJSON

func (s RecordVersion) MarshalJSON() ([]byte, error)

func (RecordVersion) SetAnnounce

func (s RecordVersion) SetAnnounce(v Announce)

func (RecordVersion) SetVersion

func (s RecordVersion) SetVersion(v string)

func (RecordVersion) Version

func (s RecordVersion) Version() string

func (RecordVersion) VersionBytes

func (s RecordVersion) VersionBytes() []byte

func (RecordVersion) WriteCapLit

func (s RecordVersion) WriteCapLit(w io.Writer) error

func (RecordVersion) WriteJSON

func (s RecordVersion) WriteJSON(w io.Writer) error

type RecordVersion_List

type RecordVersion_List C.PointerList

func AppendRecordVersion

func AppendRecordVersion(list RecordVersion_List, ver RecordVersion) RecordVersion_List

func NewRecordVersionList

func NewRecordVersionList(s *C.Segment, sz int) RecordVersion_List

func (RecordVersion_List) At

func (RecordVersion_List) Len

func (s RecordVersion_List) Len() int

func (RecordVersion_List) Set

func (s RecordVersion_List) Set(i int, item RecordVersion)

func (RecordVersion_List) ToArray

func (s RecordVersion_List) ToArray() []RecordVersion

type Record_List

type Record_List C.PointerList

func NewRecordList

func NewRecordList(s *C.Segment, sz int) Record_List

func (Record_List) At

func (s Record_List) At(i int) Record

func (Record_List) Len

func (s Record_List) Len() int

func (Record_List) Set

func (s Record_List) Set(i int, item Record)

func (Record_List) ToArray

func (s Record_List) ToArray() []Record

Jump to

Keyboard shortcuts

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