Documentation ¶
Index ¶
- Variables
- type AlertEvent
- type Blog
- type BlogSet
- type ErrorStatus
- func (*ErrorStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorStatus) GetDetail() *anypb.Any
- func (x *ErrorStatus) GetMessage() string
- func (*ErrorStatus) ProtoMessage()
- func (x *ErrorStatus) ProtoReflect() protoreflect.Message
- func (x *ErrorStatus) Reset()
- func (x *ErrorStatus) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAlert() *AlertEvent
- func (m *Event) GetData() isEvent_Data
- func (x *Event) GetOperate() *OperateEvent
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_Alert
- type Event_Operate
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HelloRequest) GetValue() string
- func (x *HelloRequest) GetValue2() string
- func (*HelloRequest) ProtoMessage()
- func (x *HelloRequest) ProtoReflect() protoreflect.Message
- func (x *HelloRequest) Reset()
- func (x *HelloRequest) String() string
- type OperateEvent
- type STATUS
Constants ¶
This section is empty.
Variables ¶
View Source
var ( STATUS_name = map[int32]string{ 0: "DRAFT", 1: "PUBLISHED", } STATUS_value = map[string]int32{ "DRAFT": 0, "PUBLISHED": 1, } )
Enum value maps for STATUS.
View Source
var File_pb_hello_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AlertEvent ¶
type AlertEvent struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*AlertEvent) Descriptor
deprecated
func (*AlertEvent) Descriptor() ([]byte, []int)
Deprecated: Use AlertEvent.ProtoReflect.Descriptor instead.
func (*AlertEvent) GetName ¶
func (x *AlertEvent) GetName() string
func (*AlertEvent) ProtoMessage ¶
func (*AlertEvent) ProtoMessage()
func (*AlertEvent) ProtoReflect ¶
func (x *AlertEvent) ProtoReflect() protoreflect.Message
func (*AlertEvent) Reset ¶
func (x *AlertEvent) Reset()
func (*AlertEvent) String ¶
func (x *AlertEvent) String() string
type Blog ¶
type Blog struct { // id --> Id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 内容 Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 博客 Lables map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Blog) Descriptor
deprecated
func (*Blog) GetContent ¶
func (*Blog) ProtoMessage ¶
func (*Blog) ProtoMessage()
func (*Blog) ProtoReflect ¶
func (x *Blog) ProtoReflect() protoreflect.Message
type BlogSet ¶
type BlogSet struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // repeated Blog Blog的数组 Items []*Blog `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*BlogSet) Descriptor
deprecated
func (*BlogSet) ProtoMessage ¶
func (*BlogSet) ProtoMessage()
func (*BlogSet) ProtoReflect ¶
func (x *BlogSet) ProtoReflect() protoreflect.Message
type ErrorStatus ¶
type ErrorStatus struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // google.protobuf 是包的名称 // Any 这个包里面的类型 Detail *anypb.Any `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` // contains filtered or unexported fields }
func (*ErrorStatus) Descriptor
deprecated
func (*ErrorStatus) Descriptor() ([]byte, []int)
Deprecated: Use ErrorStatus.ProtoReflect.Descriptor instead.
func (*ErrorStatus) GetDetail ¶
func (x *ErrorStatus) GetDetail() *anypb.Any
func (*ErrorStatus) GetMessage ¶
func (x *ErrorStatus) GetMessage() string
func (*ErrorStatus) ProtoMessage ¶
func (*ErrorStatus) ProtoMessage()
func (*ErrorStatus) ProtoReflect ¶
func (x *ErrorStatus) ProtoReflect() protoreflect.Message
func (*ErrorStatus) Reset ¶
func (x *ErrorStatus) Reset()
func (*ErrorStatus) String ¶
func (x *ErrorStatus) String() string
type Event ¶
type Event struct { // Types that are assignable to Data: // // *Event_Alert // *Event_Operate Data isEvent_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetAlert ¶
func (x *Event) GetAlert() *AlertEvent
func (*Event) GetOperate ¶
func (x *Event) GetOperate() *OperateEvent
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_Alert ¶
type Event_Alert struct {
Alert *AlertEvent `protobuf:"bytes,1,opt,name=alert,proto3,oneof"`
}
type Event_Operate ¶
type Event_Operate struct {
Operate *OperateEvent `protobuf:"bytes,2,opt,name=operate,proto3,oneof"`
}
type HelloRequest ¶
type HelloRequest struct { // 类型是string, 字段的名称 value, 字段的编号: 1 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // 类型是string, 字段的名称 value, 字段的编号: 2 Value2 string `protobuf:"bytes,2,opt,name=value2,proto3" json:"value2,omitempty"` // contains filtered or unexported fields }
message --> 多语言
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetValue ¶
func (x *HelloRequest) GetValue() string
func (*HelloRequest) GetValue2 ¶
func (x *HelloRequest) GetValue2() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type OperateEvent ¶
type OperateEvent struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*OperateEvent) Descriptor
deprecated
func (*OperateEvent) Descriptor() ([]byte, []int)
Deprecated: Use OperateEvent.ProtoReflect.Descriptor instead.
func (*OperateEvent) GetName ¶
func (x *OperateEvent) GetName() string
func (*OperateEvent) ProtoMessage ¶
func (*OperateEvent) ProtoMessage()
func (*OperateEvent) ProtoReflect ¶
func (x *OperateEvent) ProtoReflect() protoreflect.Message
func (*OperateEvent) Reset ¶
func (x *OperateEvent) Reset()
func (*OperateEvent) String ¶
func (x *OperateEvent) String() string
type STATUS ¶
type STATUS int32
func (STATUS) Descriptor ¶
func (STATUS) Descriptor() protoreflect.EnumDescriptor
func (STATUS) EnumDescriptor
deprecated
func (STATUS) Number ¶
func (x STATUS) Number() protoreflect.EnumNumber
func (STATUS) Type ¶
func (STATUS) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.