Documentation ¶
Index ¶
- Constants
- Variables
- type Patch
- func (p Patch) Copy() Patch
- func (*Patch) Descriptor() ([]byte, []int)
- func (this *Patch) Equal(that interface{}) bool
- func (m *Patch) GetRange() *pb.Range
- func (m *Patch) GetValueJSON() []byte
- func (this *Patch) GoString() string
- func (m *Patch) Marshal() (dAtA []byte, err error)
- func (p Patch) MarshalJSON() ([]byte, error)
- func (p Patch) MarshalText() ([]byte, error)
- func (m *Patch) MarshalTo(dAtA []byte) (int, error)
- func (m *Patch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Patch) ProtoMessage()
- func (m *Patch) Reset()
- func (m *Patch) Size() (n int)
- func (p Patch) String() string
- func (m *Patch) Unmarshal(dAtA []byte) error
- func (p *Patch) UnmarshalJSON(bs []byte) error
- func (p *Patch) UnmarshalText(bs []byte) error
- func (p Patch) Value() (interface{}, error)
- func (this *Patch) VerboseEqual(that interface{}) error
- func (m *Patch) XXX_DiscardUnknown()
- func (m *Patch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Patch) XXX_Merge(src proto.Message)
- func (m *Patch) XXX_Size() int
- func (m *Patch) XXX_Unmarshal(b []byte) error
- type Tx
- func (tx Tx) Copy() Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (this *Tx) Equal(that interface{}) bool
- func (m *Tx) GetAttachment() []byte
- func (m *Tx) GetCheckpoint() bool
- func (m *Tx) GetPatches() []Patch
- func (m *Tx) GetStateURI() string
- func (m *Tx) GetStatus() TxStatus
- func (this *Tx) GoString() string
- func (tx Tx) Hash() types.Hash
- func (m *Tx) Marshal() (dAtA []byte, err error)
- func (m *Tx) MarshalTo(dAtA []byte) (int, error)
- func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Tx) ProtoMessage()
- func (m *Tx) Reset()
- func (m *Tx) Size() (n int)
- func (this *Tx) String() string
- func (m *Tx) Unmarshal(dAtA []byte) error
- func (this *Tx) VerboseEqual(that interface{}) error
- func (m *Tx) XXX_DiscardUnknown()
- func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tx) XXX_Merge(src proto.Message)
- func (m *Tx) XXX_Size() int
- func (m *Tx) XXX_Unmarshal(b []byte) error
- type TxStatus
Constants ¶
View Source
const (
KeypathSeparator = "."
)
Variables ¶
View Source
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
View Source
var ErrBadPatch = errors.New("bad patch string")
View Source
var TxStatus_name = map[int32]string{
0: "Unknown",
1: "InMempool",
2: "Invalid",
3: "Valid",
}
View Source
var TxStatus_value = map[string]int32{
"Unknown": 0,
"InMempool": 1,
"Invalid": 2,
"Valid": 3,
}
Functions ¶
This section is empty.
Types ¶
type Patch ¶
type Patch struct { Keypath redwood_dev_state.Keypath `protobuf:"bytes,1,opt,name=keypath,proto3,customtype=redwood.dev/state.Keypath" json:"keypath"` Range *pb.Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` ValueJSON []byte `protobuf:"bytes,3,opt,name=valueJSON,proto3" json:"valueJSON,omitempty"` }
func NewPopulatedPatch ¶
func (*Patch) Descriptor ¶
func (*Patch) GetValueJSON ¶
func (Patch) MarshalJSON ¶
func (Patch) MarshalText ¶
func (*Patch) ProtoMessage ¶
func (*Patch) ProtoMessage()
func (*Patch) UnmarshalJSON ¶
func (*Patch) UnmarshalText ¶
func (*Patch) VerboseEqual ¶
func (*Patch) XXX_DiscardUnknown ¶
func (m *Patch) XXX_DiscardUnknown()
func (*Patch) XXX_Marshal ¶
func (*Patch) XXX_Unmarshal ¶
type Tx ¶
type Tx struct { ID redwood_dev_state.Version `protobuf:"bytes,1,opt,name=id,proto3,customtype=redwood.dev/state.Version" json:"id"` Parents []redwood_dev_state.Version `protobuf:"bytes,2,rep,name=parents,proto3,customtype=redwood.dev/state.Version" json:"parents"` Children []redwood_dev_state.Version `protobuf:"bytes,3,rep,name=children,proto3,customtype=redwood.dev/state.Version" json:"children"` From redwood_dev_types.Address `protobuf:"bytes,4,opt,name=from,proto3,customtype=redwood.dev/types.Address" json:"from"` Sig redwood_dev_types.Signature `protobuf:"bytes,5,opt,name=sig,proto3,customtype=redwood.dev/types.Signature" json:"sig"` StateURI string `protobuf:"bytes,6,opt,name=stateURI,proto3" json:"stateURI,omitempty"` Patches []Patch `protobuf:"bytes,7,rep,name=patches,proto3" json:"patches"` Checkpoint bool `protobuf:"varint,8,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` Attachment []byte `protobuf:"bytes,9,opt,name=attachment,proto3" json:"attachment,omitempty"` Status TxStatus `protobuf:"varint,10,opt,name=status,proto3,enum=Redwood.tree.TxStatus" json:"status,omitempty"` }
func NewPopulatedTx ¶
func (*Tx) Descriptor ¶
func (*Tx) GetAttachment ¶
func (*Tx) GetCheckpoint ¶
func (*Tx) GetPatches ¶
func (*Tx) GetStateURI ¶
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) VerboseEqual ¶
func (*Tx) XXX_DiscardUnknown ¶
func (m *Tx) XXX_DiscardUnknown()
func (*Tx) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.