pb

package
v0.0.0-...-67bf5fd Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VENDOR_name = map[int32]string{
		0: "ALI_YUN",
		1: "TX_YUN",
		2: "AWS",
	}
	VENDOR_value = map[string]int32{
		"ALI_YUN": 0,
		"TX_YUN":  1,
		"AWS":     2,
	}
)

Enum value maps for VENDOR.

View Source
var File_hello_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ErrorStatus

type ErrorStatus struct {
	Message string       `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Details []*anypb.Any `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorStatus) Descriptor deprecated

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

Deprecated: Use ErrorStatus.ProtoReflect.Descriptor instead.

func (*ErrorStatus) GetDetails

func (x *ErrorStatus) GetDetails() []*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 Header:
	//	*Event_Protobuf
	//	*Event_Json
	Header isEvent_Header `protobuf_oneof:"header"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetHeader

func (m *Event) GetHeader() isEvent_Header

func (*Event) GetJson

func (x *Event) GetJson() *JSONEventHeader

func (*Event) GetProtobuf

func (x *Event) GetProtobuf() *ProtobufEventHeader

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_Json

type Event_Json struct {
	Json *JSONEventHeader `protobuf:"bytes,2,opt,name=json,proto3,oneof"`
}

type Event_Protobuf

type Event_Protobuf struct {
	Protobuf *ProtobufEventHeader `protobuf:"bytes,1,opt,name=protobuf,proto3,oneof"`
}

type Host

type Host struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ip   string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	// 有一个Tags字段
	Tags map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Host) Descriptor deprecated

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

Deprecated: Use Host.ProtoReflect.Descriptor instead.

func (*Host) GetIp

func (x *Host) GetIp() string

func (*Host) GetName

func (x *Host) GetName() string

func (*Host) GetTags

func (x *Host) GetTags() map[string]string

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) ProtoReflect

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

func (*Host) Reset

func (x *Host) Reset()

func (*Host) String

func (x *Host) String() string

type HostSet

type HostSet struct {
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 定义一个Host数组
	Items []*Host `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*HostSet) Descriptor deprecated

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

Deprecated: Use HostSet.ProtoReflect.Descriptor instead.

func (*HostSet) GetItems

func (x *HostSet) GetItems() []*Host

func (*HostSet) GetTotal

func (x *HostSet) GetTotal() int64

func (*HostSet) ProtoMessage

func (*HostSet) ProtoMessage()

func (*HostSet) ProtoReflect

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

func (*HostSet) Reset

func (x *HostSet) Reset()

func (*HostSet) String

func (x *HostSet) String() string

type JSONEventHeader

type JSONEventHeader struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Headers []byte `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

func (*JSONEventHeader) Descriptor deprecated

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

Deprecated: Use JSONEventHeader.ProtoReflect.Descriptor instead.

func (*JSONEventHeader) GetHeaders

func (x *JSONEventHeader) GetHeaders() []byte

func (*JSONEventHeader) GetId

func (x *JSONEventHeader) GetId() string

func (*JSONEventHeader) ProtoMessage

func (*JSONEventHeader) ProtoMessage()

func (*JSONEventHeader) ProtoReflect

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

func (*JSONEventHeader) Reset

func (x *JSONEventHeader) Reset()

func (*JSONEventHeader) String

func (x *JSONEventHeader) String() string

type Outer

type Outer struct {
	Omi *Outer_MiddleAA_Inner `protobuf:"bytes,1,opt,name=omi,proto3" json:"omi,omitempty"`
	// contains filtered or unexported fields
}

func (*Outer) Descriptor deprecated

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

Deprecated: Use Outer.ProtoReflect.Descriptor instead.

func (*Outer) GetOmi

func (x *Outer) GetOmi() *Outer_MiddleAA_Inner

func (*Outer) ProtoMessage

func (*Outer) ProtoMessage()

func (*Outer) ProtoReflect

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

func (*Outer) Reset

func (x *Outer) Reset()

func (*Outer) String

func (x *Outer) String() string

type Outer_MiddleAA_Inner

type Outer_MiddleAA_Inner struct {
	Ival  int64 `protobuf:"varint,1,opt,name=ival,proto3" json:"ival,omitempty"`
	Booly bool  `protobuf:"varint,2,opt,name=booly,proto3" json:"booly,omitempty"`
	// contains filtered or unexported fields
}

func (*Outer_MiddleAA_Inner) Descriptor deprecated

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

Deprecated: Use Outer_MiddleAA_Inner.ProtoReflect.Descriptor instead.

func (*Outer_MiddleAA_Inner) GetBooly

func (x *Outer_MiddleAA_Inner) GetBooly() bool

func (*Outer_MiddleAA_Inner) GetIval

func (x *Outer_MiddleAA_Inner) GetIval() int64

func (*Outer_MiddleAA_Inner) ProtoMessage

func (*Outer_MiddleAA_Inner) ProtoMessage()

func (*Outer_MiddleAA_Inner) ProtoReflect

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

func (*Outer_MiddleAA_Inner) Reset

func (x *Outer_MiddleAA_Inner) Reset()

func (*Outer_MiddleAA_Inner) String

func (x *Outer_MiddleAA_Inner) String() string

type ProtobufEventHeader

type ProtobufEventHeader struct {
	Id      string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Headers map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProtobufEventHeader) Descriptor deprecated

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

Deprecated: Use ProtobufEventHeader.ProtoReflect.Descriptor instead.

func (*ProtobufEventHeader) GetHeaders

func (x *ProtobufEventHeader) GetHeaders() map[string]string

func (*ProtobufEventHeader) GetId

func (x *ProtobufEventHeader) GetId() string

func (*ProtobufEventHeader) ProtoMessage

func (*ProtobufEventHeader) ProtoMessage()

func (*ProtobufEventHeader) ProtoReflect

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

func (*ProtobufEventHeader) Reset

func (x *ProtobufEventHeader) Reset()

func (*ProtobufEventHeader) String

func (x *ProtobufEventHeader) String() string

type String

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

func (*String) Descriptor deprecated

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

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetValue

func (x *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

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

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

type VENDOR

type VENDOR int32
const (
	VENDOR_ALI_YUN VENDOR = 0
	VENDOR_TX_YUN  VENDOR = 1
	VENDOR_AWS     VENDOR = 2
)

func (VENDOR) Descriptor

func (VENDOR) Descriptor() protoreflect.EnumDescriptor

func (VENDOR) Enum

func (x VENDOR) Enum() *VENDOR

func (VENDOR) EnumDescriptor deprecated

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

Deprecated: Use VENDOR.Descriptor instead.

func (VENDOR) Number

func (x VENDOR) Number() protoreflect.EnumNumber

func (VENDOR) String

func (x VENDOR) String() string

func (VENDOR) Type

func (VENDOR) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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