protos

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Message_MessageType_name = map[int32]string{
		0: "DISCONNECT",
		1: "TEXT",
		2: "BINARY",
	}
	Message_MessageType_value = map[string]int32{
		"DISCONNECT": 0,
		"TEXT":       1,
		"BINARY":     2,
	}
)

Enum value maps for Message_MessageType.

View Source
var (
	ChannelAction_ChannelActionType_name = map[int32]string{
		0: "SUBSCRIBE",
		2: "UNSUBSCRIBE",
	}
	ChannelAction_ChannelActionType_value = map[string]int32{
		"SUBSCRIBE":   0,
		"UNSUBSCRIBE": 2,
	}
)

Enum value maps for ChannelAction_ChannelActionType.

View Source
var File_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ChannelAction added in v0.3.0

type ChannelAction struct {
	Channel string                          `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Target  *Target                         `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	Type    ChannelAction_ChannelActionType `protobuf:"varint,3,opt,name=type,proto3,enum=ChannelAction_ChannelActionType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ChannelAction) Descriptor deprecated added in v0.3.0

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

Deprecated: Use ChannelAction.ProtoReflect.Descriptor instead.

func (*ChannelAction) GetChannel added in v0.3.0

func (x *ChannelAction) GetChannel() string

func (*ChannelAction) GetTarget added in v0.3.0

func (x *ChannelAction) GetTarget() *Target

func (*ChannelAction) GetType added in v0.3.0

func (*ChannelAction) ProtoMessage added in v0.3.0

func (*ChannelAction) ProtoMessage()

func (*ChannelAction) ProtoReflect added in v0.3.0

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

func (*ChannelAction) Reset added in v0.3.0

func (x *ChannelAction) Reset()

func (*ChannelAction) String added in v0.3.0

func (x *ChannelAction) String() string

type ChannelAction_ChannelActionType added in v0.3.0

type ChannelAction_ChannelActionType int32
const (
	ChannelAction_SUBSCRIBE   ChannelAction_ChannelActionType = 0
	ChannelAction_UNSUBSCRIBE ChannelAction_ChannelActionType = 2
)

func (ChannelAction_ChannelActionType) Descriptor added in v0.3.0

func (ChannelAction_ChannelActionType) Enum added in v0.3.0

func (ChannelAction_ChannelActionType) EnumDescriptor deprecated added in v0.3.0

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

Deprecated: Use ChannelAction_ChannelActionType.Descriptor instead.

func (ChannelAction_ChannelActionType) Number added in v0.3.0

func (ChannelAction_ChannelActionType) String added in v0.3.0

func (ChannelAction_ChannelActionType) Type added in v0.3.0

type Message

type Message struct {
	Type   Message_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=Message_MessageType" json:"type,omitempty"`
	Body   []byte              `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	Target *Target             `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBody

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

func (*Message) GetTarget added in v0.3.0

func (x *Message) GetTarget() *Target

func (*Message) GetType

func (x *Message) GetType() Message_MessageType

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_MessageType

type Message_MessageType int32
const (
	Message_DISCONNECT Message_MessageType = 0
	// Must match RFC 6455, section 11.8
	Message_TEXT   Message_MessageType = 1
	Message_BINARY Message_MessageType = 2
)

func (Message_MessageType) Descriptor

func (Message_MessageType) Enum

func (Message_MessageType) EnumDescriptor deprecated

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

Deprecated: Use Message_MessageType.Descriptor instead.

func (Message_MessageType) Number

func (Message_MessageType) String

func (x Message_MessageType) String() string

func (Message_MessageType) Type

type Target added in v0.3.0

type Target struct {
	Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
	User       string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Session    string `protobuf:"bytes,3,opt,name=session,proto3" json:"session,omitempty"`
	Channel    string `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*Target) Descriptor deprecated added in v0.3.0

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

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetChannel added in v0.3.0

func (x *Target) GetChannel() string

func (*Target) GetConnection added in v0.3.0

func (x *Target) GetConnection() string

func (*Target) GetSession added in v0.3.0

func (x *Target) GetSession() string

func (*Target) GetUser added in v0.3.0

func (x *Target) GetUser() string

func (*Target) ProtoMessage added in v0.3.0

func (*Target) ProtoMessage()

func (*Target) ProtoReflect added in v0.3.0

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

func (*Target) Reset added in v0.3.0

func (x *Target) Reset()

func (*Target) String added in v0.3.0

func (x *Target) String() string

Jump to

Keyboard shortcuts

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