harmonytypesv1

package
v0.0.0-...-a9cc36f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Anything.ProtoReflect.Descriptor instead.

func (*Anything) GetBody

func (x *Anything) GetBody() []byte

func (*Anything) GetKind

func (x *Anything) GetKind() string

func (*Anything) MarshalToSizedBufferVT

func (m *Anything) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Anything) MarshalToVT

func (m *Anything) MarshalToVT(dAtA []byte) (int, error)

func (*Anything) MarshalVT

func (m *Anything) MarshalVT() (dAtA []byte, err error)

func (*Anything) ProtoMessage

func (*Anything) ProtoMessage()

func (*Anything) ProtoReflect

func (x *Anything) ProtoReflect() protoreflect.Message

func (*Anything) Reset

func (x *Anything) Reset()

func (*Anything) SizeVT

func (m *Anything) SizeVT() (n int)

func (*Anything) String

func (x *Anything) String() string

func (*Anything) UnmarshalVT

func (m *Anything) UnmarshalVT(dAtA []byte) error

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

An empty message

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) MarshalToSizedBufferVT

func (m *Empty) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Empty) MarshalToVT

func (m *Empty) MarshalToVT(dAtA []byte) (int, error)

func (*Empty) MarshalVT

func (m *Empty) MarshalVT() (dAtA []byte, err error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) SizeVT

func (m *Empty) SizeVT() (n int)

func (*Empty) String

func (x *Empty) String() string

func (*Empty) UnmarshalVT

func (m *Empty) UnmarshalVT(dAtA []byte) error

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) Enum

func (ItemPosition_Position) EnumDescriptor deprecated

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

Deprecated: Use ItemPosition_Position.Descriptor instead.

func (ItemPosition_Position) Number

func (ItemPosition_Position) String

func (x ItemPosition_Position) String() string

func (ItemPosition_Position) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetExtension

func (x *Metadata) GetExtension() map[string]*Anything

func (*Metadata) GetKind

func (x *Metadata) GetKind() string

func (*Metadata) MarshalToSizedBufferVT

func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Metadata) MarshalToVT

func (m *Metadata) MarshalToVT(dAtA []byte) (int, error)

func (*Metadata) MarshalVT

func (m *Metadata) MarshalVT() (dAtA []byte, err error)

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) SizeVT

func (m *Metadata) SizeVT() (n int)

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) UnmarshalVT

func (m *Metadata) UnmarshalVT(dAtA []byte) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetData

func (x *Token) GetData() []byte

func (*Token) GetSig

func (x *Token) GetSig() []byte

func (*Token) MarshalToSizedBufferVT

func (m *Token) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Token) MarshalToVT

func (m *Token) MarshalToVT(dAtA []byte) (int, error)

func (*Token) MarshalVT

func (m *Token) MarshalVT() (dAtA []byte, err error)

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) SizeVT

func (m *Token) SizeVT() (n int)

func (*Token) String

func (x *Token) String() string

func (*Token) UnmarshalVT

func (m *Token) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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