pb

package
v0.0.0-...-5d9b87f Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	STATUS_name = map[int32]string{
		0: "DRAFT",
		1: "PUBLISTED",
	}
	STATUS_value = map[string]int32{
		"DRAFT":     0,
		"PUBLISTED": 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"`
	// 博客标签
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Blog) Descriptor deprecated

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

Deprecated: Use Blog.ProtoReflect.Descriptor instead.

func (*Blog) GetContent

func (x *Blog) GetContent() string

func (*Blog) GetId

func (x *Blog) GetId() int64

func (*Blog) GetLabels

func (x *Blog) GetLabels() map[string]string

func (*Blog) ProtoMessage

func (*Blog) ProtoMessage()

func (*Blog) ProtoReflect

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

func (*Blog) Reset

func (x *Blog) Reset()

func (*Blog) String

func (x *Blog) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use BlogSet.ProtoReflect.Descriptor instead.

func (*BlogSet) GetItems

func (x *BlogSet) GetItems() []*Blog

func (*BlogSet) GetTotal

func (x *BlogSet) GetTotal() int64

func (*BlogSet) ProtoMessage

func (*BlogSet) ProtoMessage()

func (*BlogSet) ProtoReflect

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

func (*BlogSet) Reset

func (x *BlogSet) Reset()

func (*BlogSet) String

func (x *BlogSet) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAlert

func (x *Event) GetAlert() *AlertEvent

func (*Event) GetData

func (m *Event) GetData() isEvent_Data

func (*Event) GetOperate

func (x *Event) GetOperate() *OperateEvent

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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"`
	// 字段编号不能相同
	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
const (
	STATUS_DRAFT     STATUS = 0
	STATUS_PUBLISTED STATUS = 1
)

func (STATUS) Descriptor

func (STATUS) Descriptor() protoreflect.EnumDescriptor

func (STATUS) Enum

func (x STATUS) Enum() *STATUS

func (STATUS) EnumDescriptor deprecated

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

Deprecated: Use STATUS.Descriptor instead.

func (STATUS) Number

func (x STATUS) Number() protoreflect.EnumNumber

func (STATUS) String

func (x STATUS) String() string

func (STATUS) Type

func (STATUS) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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