common

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: AGPL-3.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApproval        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApproval          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApproval = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWrapper        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWrapper          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWrapper = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Approval added in v0.2.3

type Approval struct {
	// expired_height is the block height at which the signature expires.
	ExpiredHeight uint64 `protobuf:"varint,1,opt,name=expired_height,json=expiredHeight,proto3" json:"expired_height,omitempty"`
	// global_virtual_group_family_id is the family id that stored.
	GlobalVirtualGroupFamilyId uint32 `` /* 146-byte string literal not displayed */
	// The signature needs to conform to the EIP 712 specification.
	Sig []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
}

Approval is the signature information returned by the Primary Storage Provider (SP) to the user after allowing them to create a bucket or object, which is then used for verification on the chain to ensure agreement between the Primary SP and the user.

func (*Approval) Descriptor added in v0.2.3

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

func (*Approval) GetExpiredHeight added in v0.2.3

func (m *Approval) GetExpiredHeight() uint64

func (*Approval) GetGlobalVirtualGroupFamilyId added in v0.2.3

func (m *Approval) GetGlobalVirtualGroupFamilyId() uint32

func (*Approval) GetSig added in v0.2.3

func (m *Approval) GetSig() []byte

func (*Approval) Marshal added in v0.2.3

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

func (*Approval) MarshalTo added in v0.2.3

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

func (*Approval) MarshalToSizedBuffer added in v0.2.3

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

func (*Approval) ProtoMessage added in v0.2.3

func (*Approval) ProtoMessage()

func (*Approval) Reset added in v0.2.3

func (m *Approval) Reset()

func (*Approval) Size added in v0.2.3

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

func (*Approval) String added in v0.2.3

func (m *Approval) String() string

func (*Approval) Unmarshal added in v0.2.3

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

func (*Approval) XXX_DiscardUnknown added in v0.2.3

func (m *Approval) XXX_DiscardUnknown()

func (*Approval) XXX_Marshal added in v0.2.3

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

func (*Approval) XXX_Merge added in v0.2.3

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

func (*Approval) XXX_Size added in v0.2.3

func (m *Approval) XXX_Size() int

func (*Approval) XXX_Unmarshal added in v0.2.3

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

type BoolValue

type BoolValue struct {
	// The bool value.
	Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `bool`.

The JSON representation for `BoolValue` is JSON `true` and `false`.

func (*BoolValue) Descriptor

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

func (*BoolValue) GetValue

func (m *BoolValue) GetValue() bool

func (*BoolValue) Marshal

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

func (*BoolValue) MarshalTo

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

func (*BoolValue) MarshalToSizedBuffer

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

func (*BoolValue) ProtoMessage

func (*BoolValue) ProtoMessage()

func (*BoolValue) Reset

func (m *BoolValue) Reset()

func (*BoolValue) Size

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

func (*BoolValue) String

func (m *BoolValue) String() string

func (*BoolValue) Unmarshal

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

func (*BoolValue) XXX_DiscardUnknown

func (m *BoolValue) XXX_DiscardUnknown()

func (*BoolValue) XXX_Marshal

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

func (*BoolValue) XXX_Merge

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

func (*BoolValue) XXX_Size

func (m *BoolValue) XXX_Size() int

func (*BoolValue) XXX_Unmarshal

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

type BytesValue

type BytesValue struct {
	// The bytes value.
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `bytes`.

The JSON representation for `BytesValue` is JSON string.

func (*BytesValue) Descriptor

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

func (*BytesValue) GetValue

func (m *BytesValue) GetValue() []byte

func (*BytesValue) Marshal

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

func (*BytesValue) MarshalTo

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

func (*BytesValue) MarshalToSizedBuffer

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

func (*BytesValue) ProtoMessage

func (*BytesValue) ProtoMessage()

func (*BytesValue) Reset

func (m *BytesValue) Reset()

func (*BytesValue) Size

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

func (*BytesValue) String

func (m *BytesValue) String() string

func (*BytesValue) Unmarshal

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

func (*BytesValue) XXX_DiscardUnknown

func (m *BytesValue) XXX_DiscardUnknown()

func (*BytesValue) XXX_Marshal

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

func (*BytesValue) XXX_Merge

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

func (*BytesValue) XXX_Size

func (m *BytesValue) XXX_Size() int

func (*BytesValue) XXX_Unmarshal

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

type DoubleValue

type DoubleValue struct {
	// The double value.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `double`.

The JSON representation for `DoubleValue` is JSON number.

func (*DoubleValue) Descriptor

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

func (*DoubleValue) GetValue

func (m *DoubleValue) GetValue() float64

func (*DoubleValue) Marshal

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

func (*DoubleValue) MarshalTo

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

func (*DoubleValue) MarshalToSizedBuffer

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

func (*DoubleValue) ProtoMessage

func (*DoubleValue) ProtoMessage()

func (*DoubleValue) Reset

func (m *DoubleValue) Reset()

func (*DoubleValue) Size

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

func (*DoubleValue) String

func (m *DoubleValue) String() string

func (*DoubleValue) Unmarshal

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

func (*DoubleValue) XXX_DiscardUnknown

func (m *DoubleValue) XXX_DiscardUnknown()

func (*DoubleValue) XXX_Marshal

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

func (*DoubleValue) XXX_Merge

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

func (*DoubleValue) XXX_Size

func (m *DoubleValue) XXX_Size() int

func (*DoubleValue) XXX_Unmarshal

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

type FloatValue

type FloatValue struct {
	// The float value.
	Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `float`.

The JSON representation for `FloatValue` is JSON number.

func (*FloatValue) Descriptor

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

func (*FloatValue) GetValue

func (m *FloatValue) GetValue() float32

func (*FloatValue) Marshal

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

func (*FloatValue) MarshalTo

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

func (*FloatValue) MarshalToSizedBuffer

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

func (*FloatValue) ProtoMessage

func (*FloatValue) ProtoMessage()

func (*FloatValue) Reset

func (m *FloatValue) Reset()

func (*FloatValue) Size

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

func (*FloatValue) String

func (m *FloatValue) String() string

func (*FloatValue) Unmarshal

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

func (*FloatValue) XXX_DiscardUnknown

func (m *FloatValue) XXX_DiscardUnknown()

func (*FloatValue) XXX_Marshal

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

func (*FloatValue) XXX_Merge

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

func (*FloatValue) XXX_Size

func (m *FloatValue) XXX_Size() int

func (*FloatValue) XXX_Unmarshal

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

type Int32Value

type Int32Value struct {
	// The int32 value.
	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `int32`.

The JSON representation for `Int32Value` is JSON number.

func (*Int32Value) Descriptor

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

func (*Int32Value) GetValue

func (m *Int32Value) GetValue() int32

func (*Int32Value) Marshal

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

func (*Int32Value) MarshalTo

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

func (*Int32Value) MarshalToSizedBuffer

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

func (*Int32Value) ProtoMessage

func (*Int32Value) ProtoMessage()

func (*Int32Value) Reset

func (m *Int32Value) Reset()

func (*Int32Value) Size

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

func (*Int32Value) String

func (m *Int32Value) String() string

func (*Int32Value) Unmarshal

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

func (*Int32Value) XXX_DiscardUnknown

func (m *Int32Value) XXX_DiscardUnknown()

func (*Int32Value) XXX_Marshal

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

func (*Int32Value) XXX_Merge

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

func (*Int32Value) XXX_Size

func (m *Int32Value) XXX_Size() int

func (*Int32Value) XXX_Unmarshal

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

type Int64Value

type Int64Value struct {
	// The int64 value.
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `int64`.

The JSON representation for `Int64Value` is JSON string.

func (*Int64Value) Descriptor

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

func (*Int64Value) GetValue

func (m *Int64Value) GetValue() int64

func (*Int64Value) Marshal

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

func (*Int64Value) MarshalTo

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

func (*Int64Value) MarshalToSizedBuffer

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

func (*Int64Value) ProtoMessage

func (*Int64Value) ProtoMessage()

func (*Int64Value) Reset

func (m *Int64Value) Reset()

func (*Int64Value) Size

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

func (*Int64Value) String

func (m *Int64Value) String() string

func (*Int64Value) Unmarshal

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

func (*Int64Value) XXX_DiscardUnknown

func (m *Int64Value) XXX_DiscardUnknown()

func (*Int64Value) XXX_Marshal

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

func (*Int64Value) XXX_Merge

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

func (*Int64Value) XXX_Size

func (m *Int64Value) XXX_Size() int

func (*Int64Value) XXX_Unmarshal

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

type StringValue

type StringValue struct {
	// The string value.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `string`.

The JSON representation for `StringValue` is JSON string.

func (*StringValue) Descriptor

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

func (*StringValue) GetValue

func (m *StringValue) GetValue() string

func (*StringValue) Marshal

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

func (*StringValue) MarshalTo

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

func (*StringValue) MarshalToSizedBuffer

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

func (*StringValue) ProtoMessage

func (*StringValue) ProtoMessage()

func (*StringValue) Reset

func (m *StringValue) Reset()

func (*StringValue) Size

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

func (*StringValue) String

func (m *StringValue) String() string

func (*StringValue) Unmarshal

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

func (*StringValue) XXX_DiscardUnknown

func (m *StringValue) XXX_DiscardUnknown()

func (*StringValue) XXX_Marshal

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

func (*StringValue) XXX_Merge

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

func (*StringValue) XXX_Size

func (m *StringValue) XXX_Size() int

func (*StringValue) XXX_Unmarshal

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

type UInt32Value

type UInt32Value struct {
	// The uint32 value.
	Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `uint32`.

The JSON representation for `UInt32Value` is JSON number.

func (*UInt32Value) Descriptor

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

func (*UInt32Value) GetValue

func (m *UInt32Value) GetValue() uint32

func (*UInt32Value) Marshal

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

func (*UInt32Value) MarshalTo

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

func (*UInt32Value) MarshalToSizedBuffer

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

func (*UInt32Value) ProtoMessage

func (*UInt32Value) ProtoMessage()

func (*UInt32Value) Reset

func (m *UInt32Value) Reset()

func (*UInt32Value) Size

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

func (*UInt32Value) String

func (m *UInt32Value) String() string

func (*UInt32Value) Unmarshal

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

func (*UInt32Value) XXX_DiscardUnknown

func (m *UInt32Value) XXX_DiscardUnknown()

func (*UInt32Value) XXX_Marshal

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

func (*UInt32Value) XXX_Merge

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

func (*UInt32Value) XXX_Size

func (m *UInt32Value) XXX_Size() int

func (*UInt32Value) XXX_Unmarshal

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

type UInt64Value

type UInt64Value struct {
	// The uint64 value.
	Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}

Wrapper message for `uint64`.

The JSON representation for `UInt64Value` is JSON string.

func (*UInt64Value) Descriptor

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

func (*UInt64Value) GetValue

func (m *UInt64Value) GetValue() uint64

func (*UInt64Value) Marshal

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

func (*UInt64Value) MarshalTo

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

func (*UInt64Value) MarshalToSizedBuffer

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

func (*UInt64Value) ProtoMessage

func (*UInt64Value) ProtoMessage()

func (*UInt64Value) Reset

func (m *UInt64Value) Reset()

func (*UInt64Value) Size

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

func (*UInt64Value) String

func (m *UInt64Value) String() string

func (*UInt64Value) Unmarshal

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

func (*UInt64Value) XXX_DiscardUnknown

func (m *UInt64Value) XXX_DiscardUnknown()

func (*UInt64Value) XXX_Marshal

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

func (*UInt64Value) XXX_Merge

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

func (*UInt64Value) XXX_Size

func (m *UInt64Value) XXX_Size() int

func (*UInt64Value) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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