types

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EchoOp_name = map[int32]string{
		0: "Undefined",
		1: "PingAction",
		2: "PongAction",
	}
	EchoOp_value = map[string]int32{
		"Undefined":  0,
		"PingAction": 1,
		"PongAction": 2,
	}
)

Enum value maps for EchoOp.

Functions

This section is empty.

Types

type EchoMsg

type EchoMsg struct {

	// Types that are assignable to Value:
	//	*EchoMsg_Ping
	//	*EchoMsg_Pong
	Value isEchoMsg_Value `protobuf_oneof:"value"`
	Ty    int32           `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoMsg) Descriptor deprecated

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

Deprecated: Use EchoMsg.ProtoReflect.Descriptor instead.

func (*EchoMsg) GetPing

func (x *EchoMsg) GetPing() *Ping

func (*EchoMsg) GetPong

func (x *EchoMsg) GetPong() *Pong

func (*EchoMsg) GetTy

func (x *EchoMsg) GetTy() int32

func (*EchoMsg) GetValue

func (m *EchoMsg) GetValue() isEchoMsg_Value

func (*EchoMsg) ProtoMessage

func (*EchoMsg) ProtoMessage()

func (*EchoMsg) ProtoReflect

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

func (*EchoMsg) Reset

func (x *EchoMsg) Reset()

func (*EchoMsg) String

func (x *EchoMsg) String() string

type EchoMsg_Ping

type EchoMsg_Ping struct {
	Ping *Ping `protobuf:"bytes,1,opt,name=ping,proto3,oneof"`
}

type EchoMsg_Pong

type EchoMsg_Pong struct {
	Pong *Pong `protobuf:"bytes,2,opt,name=pong,proto3,oneof"`
}

type EchoOp

type EchoOp int32
const (
	EchoOp_Undefined  EchoOp = 0
	EchoOp_PingAction EchoOp = 1
	EchoOp_PongAction EchoOp = 2
)

func (EchoOp) Descriptor

func (EchoOp) Descriptor() protoreflect.EnumDescriptor

func (EchoOp) Enum

func (x EchoOp) Enum() *EchoOp

func (EchoOp) EnumDescriptor deprecated

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

Deprecated: Use EchoOp.Descriptor instead.

func (EchoOp) Number

func (x EchoOp) Number() protoreflect.EnumNumber

func (EchoOp) String

func (x EchoOp) String() string

func (EchoOp) Type

func (EchoOp) Type() protoreflect.EnumType

type Ping

type Ping struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Ping) Descriptor deprecated

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetMsg

func (x *Ping) GetMsg() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

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

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type PingLog

type PingLog struct {
	Msg  string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Echo string `protobuf:"bytes,2,opt,name=echo,proto3" json:"echo,omitempty"`
	// contains filtered or unexported fields
}

func (*PingLog) Descriptor deprecated

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

Deprecated: Use PingLog.ProtoReflect.Descriptor instead.

func (*PingLog) GetEcho

func (x *PingLog) GetEcho() string

func (*PingLog) GetMsg

func (x *PingLog) GetMsg() string

func (*PingLog) ProtoMessage

func (*PingLog) ProtoMessage()

func (*PingLog) ProtoReflect

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

func (*PingLog) Reset

func (x *PingLog) Reset()

func (*PingLog) String

func (x *PingLog) String() string

type Pong

type Pong struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Pong) Descriptor deprecated

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetMsg

func (x *Pong) GetMsg() string

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

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

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

type PongLog

type PongLog struct {
	Msg  string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Echo string `protobuf:"bytes,2,opt,name=echo,proto3" json:"echo,omitempty"`
	// contains filtered or unexported fields
}

func (*PongLog) Descriptor deprecated

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

Deprecated: Use PongLog.ProtoReflect.Descriptor instead.

func (*PongLog) GetEcho

func (x *PongLog) GetEcho() string

func (*PongLog) GetMsg

func (x *PongLog) GetMsg() string

func (*PongLog) ProtoMessage

func (*PongLog) ProtoMessage()

func (*PongLog) ProtoReflect

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

func (*PongLog) Reset

func (x *PongLog) Reset()

func (*PongLog) String

func (x *PongLog) String() string

Jump to

Keyboard shortcuts

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