Documentation
¶
Index ¶
- Variables
- type Anything
- func (*Anything) Descriptor() ([]byte, []int)deprecated
- func (x *Anything) GetBody() []byte
- func (x *Anything) GetKind() string
- func (m *Anything) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Anything) MarshalToVT(dAtA []byte) (int, error)
- func (m *Anything) MarshalVT() (dAtA []byte, err error)
- func (*Anything) ProtoMessage()
- func (x *Anything) ProtoReflect() protoreflect.Message
- func (x *Anything) Reset()
- func (m *Anything) SizeVT() (n int)
- func (x *Anything) String() string
- func (m *Anything) UnmarshalVT(dAtA []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)deprecated
- func (m *Empty) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Empty) MarshalToVT(dAtA []byte) (int, error)
- func (m *Empty) MarshalVT() (dAtA []byte, err error)
- func (*Empty) ProtoMessage()
- func (x *Empty) ProtoReflect() protoreflect.Message
- func (x *Empty) Reset()
- func (m *Empty) SizeVT() (n int)
- func (x *Empty) String() string
- func (m *Empty) UnmarshalVT(dAtA []byte) error
- type HarmonyMethodMetadata
- func (*HarmonyMethodMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *HarmonyMethodMetadata) GetRequiresAuthentication() bool
- func (x *HarmonyMethodMetadata) GetRequiresLocal() bool
- func (x *HarmonyMethodMetadata) GetRequiresOwner() bool
- func (x *HarmonyMethodMetadata) GetRequiresPermissionNode() string
- func (m *HarmonyMethodMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HarmonyMethodMetadata) MarshalToVT(dAtA []byte) (int, error)
- func (m *HarmonyMethodMetadata) MarshalVT() (dAtA []byte, err error)
- func (*HarmonyMethodMetadata) ProtoMessage()
- func (x *HarmonyMethodMetadata) ProtoReflect() protoreflect.Message
- func (x *HarmonyMethodMetadata) Reset()
- func (m *HarmonyMethodMetadata) SizeVT() (n int)
- func (x *HarmonyMethodMetadata) String() string
- func (m *HarmonyMethodMetadata) UnmarshalVT(dAtA []byte) error
- type ItemPosition
- func (*ItemPosition) Descriptor() ([]byte, []int)deprecated
- func (x *ItemPosition) GetItemId() uint64
- func (x *ItemPosition) GetPosition() ItemPosition_Position
- func (m *ItemPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ItemPosition) MarshalToVT(dAtA []byte) (int, error)
- func (m *ItemPosition) MarshalVT() (dAtA []byte, err error)
- func (*ItemPosition) ProtoMessage()
- func (x *ItemPosition) ProtoReflect() protoreflect.Message
- func (x *ItemPosition) Reset()
- func (m *ItemPosition) SizeVT() (n int)
- func (x *ItemPosition) String() string
- func (m *ItemPosition) UnmarshalVT(dAtA []byte) error
- type ItemPosition_Position
- func (ItemPosition_Position) Descriptor() protoreflect.EnumDescriptor
- func (x ItemPosition_Position) Enum() *ItemPosition_Position
- func (ItemPosition_Position) EnumDescriptor() ([]byte, []int)deprecated
- func (x ItemPosition_Position) Number() protoreflect.EnumNumber
- func (x ItemPosition_Position) String() string
- func (ItemPosition_Position) Type() protoreflect.EnumType
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetExtension() map[string]*Anything
- func (x *Metadata) GetKind() string
- func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToVT(dAtA []byte) (int, error)
- func (m *Metadata) MarshalVT() (dAtA []byte, err error)
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (m *Metadata) SizeVT() (n int)
- func (x *Metadata) String() string
- func (m *Metadata) UnmarshalVT(dAtA []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetData() []byte
- func (x *Token) GetSig() []byte
- func (m *Token) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Token) MarshalToVT(dAtA []byte) (int, error)
- func (m *Token) MarshalVT() (dAtA []byte, err error)
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (m *Token) SizeVT() (n int)
- func (x *Token) String() string
- func (m *Token) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ItemPosition_Position_name = map[int32]string{ 0: "POSITION_BEFORE_UNSPECIFIED", 1: "POSITION_AFTER", } ItemPosition_Position_value = map[string]int32{ "POSITION_BEFORE_UNSPECIFIED": 0, "POSITION_AFTER": 1, } )
Enum value maps for ItemPosition_Position.
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( // Harmony method metadata. // // optional protocol.harmonytypes.v1.HarmonyMethodMetadata metadata = 1091; E_Metadata = &file_harmonytypes_v1_types_proto_extTypes[0] )
Extension fields to descriptorpb.MethodOptions.
View Source
var File_harmonytypes_v1_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Anything ¶
type Anything struct { // Kind is the kind of the message Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Body is the serialised bytes Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
Anything holds anything
func (*Anything) Descriptor
deprecated
func (*Anything) MarshalToSizedBufferVT ¶
func (*Anything) ProtoMessage ¶
func (*Anything) ProtoMessage()
func (*Anything) ProtoReflect ¶
func (x *Anything) ProtoReflect() protoreflect.Message
func (*Anything) UnmarshalVT ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
An empty message
func (*Empty) Descriptor
deprecated
func (*Empty) MarshalToSizedBufferVT ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
func (*Empty) UnmarshalVT ¶
type HarmonyMethodMetadata ¶
type HarmonyMethodMetadata struct { // whether the method requires authentication. RequiresAuthentication bool `` /* 128-byte string literal not displayed */ // whether the method allows federation or not. RequiresLocal bool `protobuf:"varint,2,opt,name=requires_local,json=requiresLocal,proto3" json:"requires_local,omitempty"` // the permission nodes required to invoke the method. RequiresPermissionNode string `` /* 129-byte string literal not displayed */ // whether the method requires owner RequiresOwner bool `protobuf:"varint,4,opt,name=requires_owner,json=requiresOwner,proto3" json:"requires_owner,omitempty"` // contains filtered or unexported fields }
Metadata for methods. These are set in individual RPC endpoints and are typically used by servers.
func (*HarmonyMethodMetadata) Descriptor
deprecated
func (*HarmonyMethodMetadata) Descriptor() ([]byte, []int)
Deprecated: Use HarmonyMethodMetadata.ProtoReflect.Descriptor instead.
func (*HarmonyMethodMetadata) GetRequiresAuthentication ¶
func (x *HarmonyMethodMetadata) GetRequiresAuthentication() bool
func (*HarmonyMethodMetadata) GetRequiresLocal ¶
func (x *HarmonyMethodMetadata) GetRequiresLocal() bool
func (*HarmonyMethodMetadata) GetRequiresOwner ¶
func (x *HarmonyMethodMetadata) GetRequiresOwner() bool
func (*HarmonyMethodMetadata) GetRequiresPermissionNode ¶
func (x *HarmonyMethodMetadata) GetRequiresPermissionNode() string
func (*HarmonyMethodMetadata) MarshalToSizedBufferVT ¶
func (m *HarmonyMethodMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HarmonyMethodMetadata) MarshalToVT ¶
func (m *HarmonyMethodMetadata) MarshalToVT(dAtA []byte) (int, error)
func (*HarmonyMethodMetadata) MarshalVT ¶
func (m *HarmonyMethodMetadata) MarshalVT() (dAtA []byte, err error)
func (*HarmonyMethodMetadata) ProtoMessage ¶
func (*HarmonyMethodMetadata) ProtoMessage()
func (*HarmonyMethodMetadata) ProtoReflect ¶
func (x *HarmonyMethodMetadata) ProtoReflect() protoreflect.Message
func (*HarmonyMethodMetadata) Reset ¶
func (x *HarmonyMethodMetadata) Reset()
func (*HarmonyMethodMetadata) SizeVT ¶
func (m *HarmonyMethodMetadata) SizeVT() (n int)
func (*HarmonyMethodMetadata) String ¶
func (x *HarmonyMethodMetadata) String() string
func (*HarmonyMethodMetadata) UnmarshalVT ¶
func (m *HarmonyMethodMetadata) UnmarshalVT(dAtA []byte) error
type ItemPosition ¶
type ItemPosition struct { // The ID of the item the position is relative to ItemId uint64 `protobuf:"varint,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // Whether the position is before or after the given ID Position ItemPosition_Position `protobuf:"varint,2,opt,name=position,proto3,enum=protocol.harmonytypes.v1.ItemPosition_Position" json:"position,omitempty"` // contains filtered or unexported fields }
An object representing an item position between two other items.
func (*ItemPosition) Descriptor
deprecated
func (*ItemPosition) Descriptor() ([]byte, []int)
Deprecated: Use ItemPosition.ProtoReflect.Descriptor instead.
func (*ItemPosition) GetItemId ¶
func (x *ItemPosition) GetItemId() uint64
func (*ItemPosition) GetPosition ¶
func (x *ItemPosition) GetPosition() ItemPosition_Position
func (*ItemPosition) MarshalToSizedBufferVT ¶
func (m *ItemPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ItemPosition) MarshalToVT ¶
func (m *ItemPosition) MarshalToVT(dAtA []byte) (int, error)
func (*ItemPosition) MarshalVT ¶
func (m *ItemPosition) MarshalVT() (dAtA []byte, err error)
func (*ItemPosition) ProtoMessage ¶
func (*ItemPosition) ProtoMessage()
func (*ItemPosition) ProtoReflect ¶
func (x *ItemPosition) ProtoReflect() protoreflect.Message
func (*ItemPosition) Reset ¶
func (x *ItemPosition) Reset()
func (*ItemPosition) SizeVT ¶
func (m *ItemPosition) SizeVT() (n int)
func (*ItemPosition) String ¶
func (x *ItemPosition) String() string
func (*ItemPosition) UnmarshalVT ¶
func (m *ItemPosition) UnmarshalVT(dAtA []byte) error
type ItemPosition_Position ¶
type ItemPosition_Position int32
The position
const ( // The position is before the item ItemPosition_POSITION_BEFORE_UNSPECIFIED ItemPosition_Position = 0 // The position is after the item ItemPosition_POSITION_AFTER ItemPosition_Position = 1 )
func (ItemPosition_Position) Descriptor ¶
func (ItemPosition_Position) Descriptor() protoreflect.EnumDescriptor
func (ItemPosition_Position) Enum ¶
func (x ItemPosition_Position) Enum() *ItemPosition_Position
func (ItemPosition_Position) EnumDescriptor
deprecated
func (ItemPosition_Position) EnumDescriptor() ([]byte, []int)
Deprecated: Use ItemPosition_Position.Descriptor instead.
func (ItemPosition_Position) Number ¶
func (x ItemPosition_Position) Number() protoreflect.EnumNumber
func (ItemPosition_Position) String ¶
func (x ItemPosition_Position) String() string
func (ItemPosition_Position) Type ¶
func (ItemPosition_Position) Type() protoreflect.EnumType
type Metadata ¶
type Metadata struct { // Kind of this metadata. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // A map containing information. Extension map[string]*Anything `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
Metadata type used by many messages.
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetExtension ¶
func (*Metadata) MarshalToSizedBufferVT ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) UnmarshalVT ¶
type Token ¶
type Token struct { // Ed25519 signature of the following serialized protobuf data, signed // with a private key. Which private key used to sign will be described // in the documentation. // // Has to be 64 bytes long, otherwise it will be rejected. Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"` // Serialized protobuf data. // The protobuf type of this serialized data is dependent on the API endpoint // used. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Token that will be used for authentication.
func (*Token) Descriptor
deprecated
func (*Token) MarshalToSizedBufferVT ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
func (*Token) UnmarshalVT ¶
Click to show internal directories.
Click to hide internal directories.