Documentation ¶
Index ¶
- Variables
- func TxIdFromStoreKey(key []byte) string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (this *Transaction) Equal(that interface{}) bool
- func (m *Transaction) GetFrom() string
- func (m *Transaction) GetId() string
- func (m *Transaction) GetNonce() uint64
- func (m *Transaction) GetStatus() Transaction_Status
- func (m *Transaction) GetTo() string
- func (m *Transaction) GetUpdatedAt() *time.Time
- func (this *Transaction) GoString() string
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (x *Transaction) StoreKey() []byte
- func (this *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type Transaction_Status
Constants ¶
This section is empty.
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 PREFIX_PENDING_TX = []byte(".pendingtx")
View Source
var Transaction_Status_name = map[int32]string{
0: "PENDING",
1: "SUCCESS",
2: "FAIL",
}
View Source
var Transaction_Status_value = map[string]int32{
"PENDING": 0,
"SUCCESS": 1,
"FAIL": 2,
}
Functions ¶
func TxIdFromStoreKey ¶
Types ¶
type Transaction ¶
type Transaction struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` Status Transaction_Status `` /* 126-byte string literal not displayed */ UpdatedAt *time.Time `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) Equal ¶
func (this *Transaction) Equal(that interface{}) bool
func (*Transaction) GetFrom ¶
func (m *Transaction) GetFrom() string
func (*Transaction) GetId ¶
func (m *Transaction) GetId() string
func (*Transaction) GetNonce ¶
func (m *Transaction) GetNonce() uint64
func (*Transaction) GetStatus ¶
func (m *Transaction) GetStatus() Transaction_Status
func (*Transaction) GetTo ¶
func (m *Transaction) GetTo() string
func (*Transaction) GetUpdatedAt ¶
func (m *Transaction) GetUpdatedAt() *time.Time
func (*Transaction) GoString ¶
func (this *Transaction) GoString() string
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) MarshalToSizedBuffer ¶
func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) StoreKey ¶
func (x *Transaction) StoreKey() []byte
func (*Transaction) String ¶
func (this *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type Transaction_Status ¶
type Transaction_Status int32
const ( Transaction_PENDING Transaction_Status = 0 Transaction_SUCCESS Transaction_Status = 1 Transaction_FAIL Transaction_Status = 2 )
func (Transaction_Status) EnumDescriptor ¶
func (Transaction_Status) EnumDescriptor() ([]byte, []int)
func (Transaction_Status) String ¶
func (x Transaction_Status) String() string
Click to show internal directories.
Click to hide internal directories.