pb

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_beholder_pb_base_message_proto protoreflect.FileDescriptor
View Source
var File_beholder_pb_example_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BaseMessage added in v0.1.1

type BaseMessage struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// https://protobuf.dev/programming-guides/proto3/#maps
	// In go: if Value is empty for a key, nothing will be serialized
	Labels *pb.Map `protobuf:"bytes,2,opt,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

BaseMessage is a basic custom message, allowing the consumer to send a string msg with some key-value pairs for labels. Consumers can consume BaseMessage directly or extend it by addding use-case specific fields

func (*BaseMessage) Descriptor deprecated added in v0.1.1

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

Deprecated: Use BaseMessage.ProtoReflect.Descriptor instead.

func (*BaseMessage) GetLabels added in v0.1.1

func (x *BaseMessage) GetLabels() *pb.Map

func (*BaseMessage) GetMsg added in v0.1.1

func (x *BaseMessage) GetMsg() string

func (*BaseMessage) ProtoMessage added in v0.1.1

func (*BaseMessage) ProtoMessage()

func (*BaseMessage) ProtoReflect added in v0.1.1

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

func (*BaseMessage) Reset added in v0.1.1

func (x *BaseMessage) Reset()

func (*BaseMessage) String added in v0.1.1

func (x *BaseMessage) String() string

type TestCustomMessage

type TestCustomMessage struct {
	BoolVal   bool    `protobuf:"varint,1,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"`
	IntVal    int64   `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3" json:"int_val,omitempty"`
	FloatVal  float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"`
	StringVal string  `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"`
	BytesVal  []byte  `protobuf:"bytes,5,opt,name=bytes_val,json=bytesVal,proto3" json:"bytes_val,omitempty"`
	// contains filtered or unexported fields
}

Used for testing

func (*TestCustomMessage) Descriptor deprecated

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

Deprecated: Use TestCustomMessage.ProtoReflect.Descriptor instead.

func (*TestCustomMessage) GetBoolVal

func (x *TestCustomMessage) GetBoolVal() bool

func (*TestCustomMessage) GetBytesVal

func (x *TestCustomMessage) GetBytesVal() []byte

func (*TestCustomMessage) GetFloatVal

func (x *TestCustomMessage) GetFloatVal() float32

func (*TestCustomMessage) GetIntVal

func (x *TestCustomMessage) GetIntVal() int64

func (*TestCustomMessage) GetStringVal

func (x *TestCustomMessage) GetStringVal() string

func (*TestCustomMessage) ProtoMessage

func (*TestCustomMessage) ProtoMessage()

func (*TestCustomMessage) ProtoReflect

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

func (*TestCustomMessage) Reset

func (x *TestCustomMessage) Reset()

func (*TestCustomMessage) String

func (x *TestCustomMessage) String() string

Jump to

Keyboard shortcuts

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