pb

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 NewPopulatedPatch(r randyTx, easy bool) *Patch

func (Patch) Copy

func (p Patch) Copy() Patch

func (*Patch) Descriptor

func (*Patch) Descriptor() ([]byte, []int)

func (*Patch) Equal

func (this *Patch) Equal(that interface{}) bool

func (*Patch) GetRange

func (m *Patch) GetRange() *pb.Range

func (*Patch) GetValueJSON

func (m *Patch) GetValueJSON() []byte

func (*Patch) GoString

func (this *Patch) GoString() string

func (*Patch) Marshal

func (m *Patch) Marshal() (dAtA []byte, err error)

func (Patch) MarshalJSON

func (p Patch) MarshalJSON() ([]byte, error)

func (Patch) MarshalText

func (p Patch) MarshalText() ([]byte, error)

func (*Patch) MarshalTo

func (m *Patch) MarshalTo(dAtA []byte) (int, error)

func (*Patch) MarshalToSizedBuffer

func (m *Patch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Patch) ProtoMessage

func (*Patch) ProtoMessage()

func (*Patch) Reset

func (m *Patch) Reset()

func (*Patch) Size

func (m *Patch) Size() (n int)

func (Patch) String

func (p Patch) String() string

func (*Patch) Unmarshal

func (m *Patch) Unmarshal(dAtA []byte) error

func (*Patch) UnmarshalJSON

func (p *Patch) UnmarshalJSON(bs []byte) error

func (*Patch) UnmarshalText

func (p *Patch) UnmarshalText(bs []byte) error

func (Patch) Value

func (p Patch) Value() (interface{}, error)

func (*Patch) VerboseEqual

func (this *Patch) VerboseEqual(that interface{}) error

func (*Patch) XXX_DiscardUnknown

func (m *Patch) XXX_DiscardUnknown()

func (*Patch) XXX_Marshal

func (m *Patch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Patch) XXX_Merge

func (m *Patch) XXX_Merge(src proto.Message)

func (*Patch) XXX_Size

func (m *Patch) XXX_Size() int

func (*Patch) XXX_Unmarshal

func (m *Patch) XXX_Unmarshal(b []byte) error

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 NewPopulatedTx(r randyTx, easy bool) *Tx

func (Tx) Copy

func (tx Tx) Copy() Tx

func (*Tx) Descriptor

func (*Tx) Descriptor() ([]byte, []int)

func (*Tx) Equal

func (this *Tx) Equal(that interface{}) bool

func (*Tx) GetAttachment

func (m *Tx) GetAttachment() []byte

func (*Tx) GetCheckpoint

func (m *Tx) GetCheckpoint() bool

func (*Tx) GetPatches

func (m *Tx) GetPatches() []Patch

func (*Tx) GetStateURI

func (m *Tx) GetStateURI() string

func (*Tx) GetStatus

func (m *Tx) GetStatus() TxStatus

func (*Tx) GoString

func (this *Tx) GoString() string

func (Tx) Hash

func (tx Tx) Hash() types.Hash

func (*Tx) Marshal

func (m *Tx) Marshal() (dAtA []byte, err error)

func (*Tx) MarshalTo

func (m *Tx) MarshalTo(dAtA []byte) (int, error)

func (*Tx) MarshalToSizedBuffer

func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Tx) ProtoMessage

func (*Tx) ProtoMessage()

func (*Tx) Reset

func (m *Tx) Reset()

func (*Tx) Size

func (m *Tx) Size() (n int)

func (*Tx) String

func (this *Tx) String() string

func (*Tx) Unmarshal

func (m *Tx) Unmarshal(dAtA []byte) error

func (*Tx) VerboseEqual

func (this *Tx) VerboseEqual(that interface{}) error

func (*Tx) XXX_DiscardUnknown

func (m *Tx) XXX_DiscardUnknown()

func (*Tx) XXX_Marshal

func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tx) XXX_Merge

func (m *Tx) XXX_Merge(src proto.Message)

func (*Tx) XXX_Size

func (m *Tx) XXX_Size() int

func (*Tx) XXX_Unmarshal

func (m *Tx) XXX_Unmarshal(b []byte) error

type TxStatus

type TxStatus int32
const (
	TxStatusUnknown   TxStatus = 0
	TxStatusInMempool TxStatus = 1
	TxStatusInvalid   TxStatus = 2
	TxStatusValid     TxStatus = 3
)

func (TxStatus) EnumDescriptor

func (TxStatus) EnumDescriptor() ([]byte, []int)

func (TxStatus) String

func (x TxStatus) String() string

Jump to

Keyboard shortcuts

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