event

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_examples_proto_event_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DemoEvent

type DemoEvent struct {
	City        string `protobuf:"bytes,1,opt,name=city,proto3" json:"city,omitempty"`
	Timestamp   int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Temperature int64  `protobuf:"varint,3,opt,name=temperature,proto3" json:"temperature,omitempty"`
	// contains filtered or unexported fields
}

* 处理演示异步服务对象(event事件)

func (*DemoEvent) Descriptor deprecated

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

Deprecated: Use DemoEvent.ProtoReflect.Descriptor instead.

func (*DemoEvent) GetCity

func (x *DemoEvent) GetCity() string

func (*DemoEvent) GetTemperature

func (x *DemoEvent) GetTemperature() int64

func (*DemoEvent) GetTimestamp

func (x *DemoEvent) GetTimestamp() int64

func (*DemoEvent) ProtoMessage

func (*DemoEvent) ProtoMessage()

func (*DemoEvent) ProtoReflect

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

func (*DemoEvent) Reset

func (x *DemoEvent) Reset()

func (*DemoEvent) String

func (x *DemoEvent) String() string

Jump to

Keyboard shortcuts

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