capsmodel

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_model_v1_caps_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	Node     string   `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	Ver      string   `protobuf:"bytes,2,opt,name=ver,proto3" json:"ver,omitempty"`
	Features []string `protobuf:"bytes,3,rep,name=features,proto3" json:"features,omitempty"`
	// contains filtered or unexported fields
}

Capabilities represents presence capabilities info.

func (*Capabilities) Descriptor deprecated added in v0.56.0

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

Deprecated: Use Capabilities.ProtoReflect.Descriptor instead.

func (*Capabilities) GetFeatures added in v0.56.0

func (x *Capabilities) GetFeatures() []string

func (*Capabilities) GetNode added in v0.56.0

func (x *Capabilities) GetNode() string

func (*Capabilities) GetVer added in v0.56.0

func (x *Capabilities) GetVer() string

func (*Capabilities) HasFeature

func (c *Capabilities) HasFeature(f string) bool

HasFeature returns whether a Capabilities instance contains f feature.

func (*Capabilities) MarshalBinary added in v0.58.0

func (x *Capabilities) MarshalBinary() (data []byte, err error)

MarshalBinary satisfies encoding.BinaryMarshaler interface.

func (*Capabilities) ProtoMessage added in v0.56.0

func (*Capabilities) ProtoMessage()

func (*Capabilities) ProtoReflect added in v0.56.0

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

func (*Capabilities) Reset added in v0.56.0

func (x *Capabilities) Reset()

func (*Capabilities) String added in v0.56.0

func (x *Capabilities) String() string

func (*Capabilities) UnmarshalBinary added in v0.58.0

func (x *Capabilities) UnmarshalBinary(data []byte) error

UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.

Jump to

Keyboard shortcuts

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