v1

package
v0.0.0-...-21a6d54 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldDescriptor_Type_name = map[int32]string{
		0:  "TYPE_UNSPECIFIED",
		1:  "TYPE_DOUBLE",
		2:  "TYPE_FLOAT",
		3:  "TYPE_INT64",
		4:  "TYPE_UINT64",
		5:  "TYPE_INT32",
		6:  "TYPE_FIXED64",
		7:  "TYPE_FIXED32",
		8:  "TYPE_BOOL",
		9:  "TYPE_STRING",
		10: "TYPE_GROUP",
		11: "TYPE_MESSAGE",
		12: "TYPE_BYTES",
		13: "TYPE_UINT32",
		14: "TYPE_ENUM",
		15: "TYPE_SFIXED32",
		16: "TYPE_SFIXED64",
		17: "TYPE_SINT32",
		18: "TYPE_SINT64",
	}
	FieldDescriptor_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_DOUBLE":      1,
		"TYPE_FLOAT":       2,
		"TYPE_INT64":       3,
		"TYPE_UINT64":      4,
		"TYPE_INT32":       5,
		"TYPE_FIXED64":     6,
		"TYPE_FIXED32":     7,
		"TYPE_BOOL":        8,
		"TYPE_STRING":      9,
		"TYPE_GROUP":       10,
		"TYPE_MESSAGE":     11,
		"TYPE_BYTES":       12,
		"TYPE_UINT32":      13,
		"TYPE_ENUM":        14,
		"TYPE_SFIXED32":    15,
		"TYPE_SFIXED64":    16,
		"TYPE_SINT32":      17,
		"TYPE_SINT64":      18,
	}
)

Enum value maps for FieldDescriptor_Type.

View Source
var (
	FieldDescriptor_Label_name = map[int32]string{
		0: "LABEL_UNSPECIFIED",
		1: "LABEL_OPTIONAL",
		2: "LABEL_REQUIRED",
		3: "LABEL_REPEATED",
	}
	FieldDescriptor_Label_value = map[string]int32{
		"LABEL_UNSPECIFIED": 0,
		"LABEL_OPTIONAL":    1,
		"LABEL_REQUIRED":    2,
		"LABEL_REPEATED":    3,
	}
)

Enum value maps for FieldDescriptor_Label.

View Source
var File_opensergo_proto_service_contract_v1_service_contract_proto protoreflect.FileDescriptor
View Source
var MetadataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "opensergo.proto.service_contract.v1.MetadataService",
	HandlerType: (*MetadataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReportMetadata",
			Handler:    _MetadataService_ReportMetadata_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "opensergo/proto/service_contract/v1/service_contract.proto",
}

MetadataService_ServiceDesc is the grpc.ServiceDesc for MetadataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMetadataServiceServer

func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)

Types

type EnumDescriptorProto

type EnumDescriptorProto struct {
	Name    *string                     `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Value   []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
	Options *MessageOptions             `protobuf:"bytes,3,opt,name=options,proto3,oneof" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Describes an enum type.

func (*EnumDescriptorProto) Descriptor deprecated

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

Deprecated: Use EnumDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumDescriptorProto) GetName

func (x *EnumDescriptorProto) GetName() string

func (*EnumDescriptorProto) GetOptions

func (x *EnumDescriptorProto) GetOptions() *MessageOptions

func (*EnumDescriptorProto) GetValue

func (*EnumDescriptorProto) ProtoMessage

func (*EnumDescriptorProto) ProtoMessage()

func (*EnumDescriptorProto) ProtoReflect

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

func (*EnumDescriptorProto) Reset

func (x *EnumDescriptorProto) Reset()

func (*EnumDescriptorProto) String

func (x *EnumDescriptorProto) String() string

type EnumValueDescriptorProto

type EnumValueDescriptorProto struct {
	Name    *string           `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Number  *int32            `protobuf:"varint,2,opt,name=number,proto3,oneof" json:"number,omitempty"`
	Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options,proto3,oneof" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Describes a value within an enum.

func (*EnumValueDescriptorProto) Descriptor deprecated

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

Deprecated: Use EnumValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumValueDescriptorProto) GetName

func (x *EnumValueDescriptorProto) GetName() string

func (*EnumValueDescriptorProto) GetNumber

func (x *EnumValueDescriptorProto) GetNumber() int32

func (*EnumValueDescriptorProto) GetOptions

func (x *EnumValueDescriptorProto) GetOptions() *EnumValueOptions

func (*EnumValueDescriptorProto) ProtoMessage

func (*EnumValueDescriptorProto) ProtoMessage()

func (*EnumValueDescriptorProto) ProtoReflect

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

func (*EnumValueDescriptorProto) Reset

func (x *EnumValueDescriptorProto) Reset()

func (*EnumValueDescriptorProto) String

func (x *EnumValueDescriptorProto) String() string

type EnumValueOptions

type EnumValueOptions struct {

	// Is this enum value deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the enum value, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating enum values.
	Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,proto3,oneof" json:"deprecated,omitempty"` //[default = false];
	// contains filtered or unexported fields
}

func (*EnumValueOptions) Descriptor deprecated

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

Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.

func (*EnumValueOptions) GetDeprecated

func (x *EnumValueOptions) GetDeprecated() bool

func (*EnumValueOptions) ProtoMessage

func (*EnumValueOptions) ProtoMessage()

func (*EnumValueOptions) ProtoReflect

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

func (*EnumValueOptions) Reset

func (x *EnumValueOptions) Reset()

func (*EnumValueOptions) String

func (x *EnumValueOptions) String() string

type FieldDescriptor

type FieldDescriptor struct {
	Name   string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Number int32                  `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`
	Label  *FieldDescriptor_Label `` /* 133-byte string literal not displayed */
	// If type_name is set, this need not be set.  If both this and type_name
	// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
	Type FieldDescriptor_Type `protobuf:"varint,5,opt,name=type,proto3,enum=opensergo.proto.service_contract.v1.FieldDescriptor_Type" json:"type,omitempty"`
	// For message and enum types, this is the name of the type.  If the name
	// starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
	// rules are used to find the type (i.e. first the nested types within this
	// message are searched, then within the parent, on up to the root
	// namespace).
	TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName,proto3,oneof" json:"type_name,omitempty"`
	// description of this field
	Description *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

Describes a field within a message.

func (*FieldDescriptor) Descriptor deprecated

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

Deprecated: Use FieldDescriptor.ProtoReflect.Descriptor instead.

func (*FieldDescriptor) GetDescription

func (x *FieldDescriptor) GetDescription() string

func (*FieldDescriptor) GetLabel

func (x *FieldDescriptor) GetLabel() FieldDescriptor_Label

func (*FieldDescriptor) GetName

func (x *FieldDescriptor) GetName() string

func (*FieldDescriptor) GetNumber

func (x *FieldDescriptor) GetNumber() int32

func (*FieldDescriptor) GetType

func (*FieldDescriptor) GetTypeName

func (x *FieldDescriptor) GetTypeName() string

func (*FieldDescriptor) ProtoMessage

func (*FieldDescriptor) ProtoMessage()

func (*FieldDescriptor) ProtoReflect

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

func (*FieldDescriptor) Reset

func (x *FieldDescriptor) Reset()

func (*FieldDescriptor) String

func (x *FieldDescriptor) String() string

type FieldDescriptor_Label

type FieldDescriptor_Label int32
const (
	// 0 is reserved for errors
	FieldDescriptor_LABEL_UNSPECIFIED FieldDescriptor_Label = 0
	FieldDescriptor_LABEL_OPTIONAL    FieldDescriptor_Label = 1
	FieldDescriptor_LABEL_REQUIRED    FieldDescriptor_Label = 2
	FieldDescriptor_LABEL_REPEATED    FieldDescriptor_Label = 3
)

func (FieldDescriptor_Label) Descriptor

func (FieldDescriptor_Label) Enum

func (FieldDescriptor_Label) EnumDescriptor deprecated

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

Deprecated: Use FieldDescriptor_Label.Descriptor instead.

func (FieldDescriptor_Label) Number

func (FieldDescriptor_Label) String

func (x FieldDescriptor_Label) String() string

func (FieldDescriptor_Label) Type

type FieldDescriptor_Type

type FieldDescriptor_Type int32
const (
	FieldDescriptor_TYPE_UNSPECIFIED FieldDescriptor_Type = 0
	// Order is weird for historical reasons.
	FieldDescriptor_TYPE_DOUBLE FieldDescriptor_Type = 1
	FieldDescriptor_TYPE_FLOAT  FieldDescriptor_Type = 2
	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
	// negative values are likely.
	FieldDescriptor_TYPE_INT64  FieldDescriptor_Type = 3
	FieldDescriptor_TYPE_UINT64 FieldDescriptor_Type = 4
	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
	// negative values are likely.
	FieldDescriptor_TYPE_INT32   FieldDescriptor_Type = 5
	FieldDescriptor_TYPE_FIXED64 FieldDescriptor_Type = 6
	FieldDescriptor_TYPE_FIXED32 FieldDescriptor_Type = 7
	FieldDescriptor_TYPE_BOOL    FieldDescriptor_Type = 8
	FieldDescriptor_TYPE_STRING  FieldDescriptor_Type = 9
	// Tag-delimited aggregate.
	// Group type is deprecated and not supported in proto3. However, Proto3
	// implementations should still be able to parse the group wire format and
	// treat group fields as unknown fields.
	FieldDescriptor_TYPE_GROUP   FieldDescriptor_Type = 10
	FieldDescriptor_TYPE_MESSAGE FieldDescriptor_Type = 11 // Length-delimited aggregate.
	// New in version 2.
	FieldDescriptor_TYPE_BYTES    FieldDescriptor_Type = 12
	FieldDescriptor_TYPE_UINT32   FieldDescriptor_Type = 13
	FieldDescriptor_TYPE_ENUM     FieldDescriptor_Type = 14
	FieldDescriptor_TYPE_SFIXED32 FieldDescriptor_Type = 15
	FieldDescriptor_TYPE_SFIXED64 FieldDescriptor_Type = 16
	FieldDescriptor_TYPE_SINT32   FieldDescriptor_Type = 17 // Uses ZigZag encoding.
	FieldDescriptor_TYPE_SINT64   FieldDescriptor_Type = 18 // Uses ZigZag encoding.
)

func (FieldDescriptor_Type) Descriptor

func (FieldDescriptor_Type) Enum

func (FieldDescriptor_Type) EnumDescriptor deprecated

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

Deprecated: Use FieldDescriptor_Type.Descriptor instead.

func (FieldDescriptor_Type) Number

func (FieldDescriptor_Type) String

func (x FieldDescriptor_Type) String() string

func (FieldDescriptor_Type) Type

type FieldOptions

type FieldOptions struct {

	// Is this field deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for accessors, or it will be completely ignored; in the very least, this
	// is a formalization for deprecating fields.
	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,proto3,oneof" json:"deprecated,omitempty"`
	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption,proto3" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldOptions) Descriptor deprecated

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

Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.

func (*FieldOptions) GetDeprecated

func (x *FieldOptions) GetDeprecated() bool

func (*FieldOptions) GetUninterpretedOption

func (x *FieldOptions) GetUninterpretedOption() []*UninterpretedOption

func (*FieldOptions) ProtoMessage

func (*FieldOptions) ProtoMessage()

func (*FieldOptions) ProtoReflect

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

func (*FieldOptions) Reset

func (x *FieldOptions) Reset()

func (*FieldOptions) String

func (x *FieldOptions) String() string

type Locality

type Locality struct {

	// Region this instance belongs to.
	Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	// Defines the local service zone where instance is running.
	Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
	// contains filtered or unexported fields
}

Identifies location of instance.

func (*Locality) Descriptor deprecated

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

Deprecated: Use Locality.ProtoReflect.Descriptor instead.

func (*Locality) GetRegion

func (x *Locality) GetRegion() string

func (*Locality) GetZone

func (x *Locality) GetZone() string

func (*Locality) ProtoMessage

func (*Locality) ProtoMessage()

func (*Locality) ProtoReflect

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

func (*Locality) Reset

func (x *Locality) Reset()

func (*Locality) String

func (x *Locality) String() string

type MessageOptions

type MessageOptions struct {

	// Is this message deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the message, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating messages.
	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,proto3,oneof" json:"deprecated,omitempty"` // [default = false];
	// contains filtered or unexported fields
}

func (*MessageOptions) Descriptor deprecated

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

Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.

func (*MessageOptions) GetDeprecated

func (x *MessageOptions) GetDeprecated() bool

func (*MessageOptions) ProtoMessage

func (*MessageOptions) ProtoMessage()

func (*MessageOptions) ProtoReflect

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

func (*MessageOptions) Reset

func (x *MessageOptions) Reset()

func (*MessageOptions) String

func (x *MessageOptions) String() string

type MetadataServiceClient

type MetadataServiceClient interface {
	// ReportMetadata report Metadata to server
	ReportMetadata(ctx context.Context, in *ReportMetadataRequest, opts ...grpc.CallOption) (*ReportMetadataReply, error)
}

MetadataServiceClient is the client API for MetadataService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type MetadataServiceServer

type MetadataServiceServer interface {
	// ReportMetadata report Metadata to server
	ReportMetadata(context.Context, *ReportMetadataRequest) (*ReportMetadataReply, error)
	// contains filtered or unexported methods
}

MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility

type MethodDescriptor

type MethodDescriptor struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Input and output type names.  These are resolved in the same way as
	// FieldDescriptor.type_name, but must refer to a message type.
	InputTypes  []string `protobuf:"bytes,2,rep,name=input_types,json=inputTypes,proto3" json:"input_types,omitempty"`
	OutputTypes []string `protobuf:"bytes,3,rep,name=output_types,json=outputTypes,proto3" json:"output_types,omitempty"`
	// Identifies if client streams multiple client messages
	ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,proto3,oneof" json:"client_streaming,omitempty"` // [default = false];
	// Identifies if server streams multiple server messages
	ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,proto3,oneof" json:"server_streaming,omitempty"` // [default = false];
	// description of this method
	Description *string  `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	HttpPaths   []string `protobuf:"bytes,8,rep,name=http_paths,json=httpPaths,proto3" json:"http_paths,omitempty"`
	HttpMethods []string `protobuf:"bytes,9,rep,name=http_methods,json=httpMethods,proto3" json:"http_methods,omitempty"`
	// contains filtered or unexported fields
}

Describes a method of a service.

func (*MethodDescriptor) Descriptor deprecated

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

Deprecated: Use MethodDescriptor.ProtoReflect.Descriptor instead.

func (*MethodDescriptor) GetClientStreaming

func (x *MethodDescriptor) GetClientStreaming() bool

func (*MethodDescriptor) GetDescription

func (x *MethodDescriptor) GetDescription() string

func (*MethodDescriptor) GetHttpMethods

func (x *MethodDescriptor) GetHttpMethods() []string

func (*MethodDescriptor) GetHttpPaths

func (x *MethodDescriptor) GetHttpPaths() []string

func (*MethodDescriptor) GetInputTypes

func (x *MethodDescriptor) GetInputTypes() []string

func (*MethodDescriptor) GetName

func (x *MethodDescriptor) GetName() string

func (*MethodDescriptor) GetOutputTypes

func (x *MethodDescriptor) GetOutputTypes() []string

func (*MethodDescriptor) GetServerStreaming

func (x *MethodDescriptor) GetServerStreaming() bool

func (*MethodDescriptor) ProtoMessage

func (*MethodDescriptor) ProtoMessage()

func (*MethodDescriptor) ProtoReflect

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

func (*MethodDescriptor) Reset

func (x *MethodDescriptor) Reset()

func (*MethodDescriptor) String

func (x *MethodDescriptor) String() string

type MethodOptions

type MethodOptions struct {

	// Is this method deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the method, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating methods.
	Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,proto3,oneof" json:"deprecated,omitempty"` // [default = false];
	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption,proto3" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*MethodOptions) Descriptor deprecated

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

Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead.

func (*MethodOptions) GetDeprecated

func (x *MethodOptions) GetDeprecated() bool

func (*MethodOptions) GetUninterpretedOption

func (x *MethodOptions) GetUninterpretedOption() []*UninterpretedOption

func (*MethodOptions) ProtoMessage

func (*MethodOptions) ProtoMessage()

func (*MethodOptions) ProtoReflect

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

func (*MethodOptions) Reset

func (x *MethodOptions) Reset()

func (*MethodOptions) String

func (x *MethodOptions) String() string

type Node

type Node struct {

	// Identifier that uniquely identifies a process within a VM/container.
	Identifier *NodeIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// Locality specifying where the instance is running.
	Locality *Locality `protobuf:"bytes,4,opt,name=locality,proto3,oneof" json:"locality,omitempty"`
	Tag      *string   `protobuf:"bytes,5,opt,name=tag,proto3,oneof" json:"tag,omitempty"`
	Cluster  *string   `protobuf:"bytes,6,opt,name=cluster,proto3,oneof" json:"cluster,omitempty"`
	Env      *string   `protobuf:"bytes,7,opt,name=env,proto3,oneof" json:"env,omitempty"`
	// contains filtered or unexported fields
}

Identifier metadata of the Node.

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetCluster

func (x *Node) GetCluster() string

func (*Node) GetEnv

func (x *Node) GetEnv() string

func (*Node) GetIdentifier

func (x *Node) GetIdentifier() *NodeIdentifier

func (*Node) GetLocality

func (x *Node) GetLocality() *Locality

func (*Node) GetTag

func (x *Node) GetTag() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeIdentifier

type NodeIdentifier struct {

	// The host name. Usually refers to the machine/container name.
	// For example: os.Hostname() in Go, socket.gethostname() in Python.
	HostName string `protobuf:"bytes,1,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"`
	// Process id.
	Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	// Start time of this ProcessIdentifier. Represented in epoch time.
	StartTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	// contains filtered or unexported fields
}

Identifier that uniquely identifies a process within a VM/container.

func (*NodeIdentifier) Descriptor deprecated

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

Deprecated: Use NodeIdentifier.ProtoReflect.Descriptor instead.

func (*NodeIdentifier) GetHostName

func (x *NodeIdentifier) GetHostName() string

func (*NodeIdentifier) GetPid

func (x *NodeIdentifier) GetPid() uint32

func (*NodeIdentifier) GetStartTimestamp

func (x *NodeIdentifier) GetStartTimestamp() *timestamppb.Timestamp

func (*NodeIdentifier) ProtoMessage

func (*NodeIdentifier) ProtoMessage()

func (*NodeIdentifier) ProtoReflect

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

func (*NodeIdentifier) Reset

func (x *NodeIdentifier) Reset()

func (*NodeIdentifier) String

func (x *NodeIdentifier) String() string

type OneofDescriptorProto

type OneofDescriptorProto struct {
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Describes a oneof.

func (*OneofDescriptorProto) Descriptor deprecated

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

Deprecated: Use OneofDescriptorProto.ProtoReflect.Descriptor instead.

func (*OneofDescriptorProto) GetName

func (x *OneofDescriptorProto) GetName() string

func (*OneofDescriptorProto) ProtoMessage

func (*OneofDescriptorProto) ProtoMessage()

func (*OneofDescriptorProto) ProtoReflect

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

func (*OneofDescriptorProto) Reset

func (x *OneofDescriptorProto) Reset()

func (*OneofDescriptorProto) String

func (x *OneofDescriptorProto) String() string

type ReportMetadataReply

type ReportMetadataReply struct {
	// contains filtered or unexported fields
}

func (*ReportMetadataReply) Descriptor deprecated

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

Deprecated: Use ReportMetadataReply.ProtoReflect.Descriptor instead.

func (*ReportMetadataReply) ProtoMessage

func (*ReportMetadataReply) ProtoMessage()

func (*ReportMetadataReply) ProtoReflect

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

func (*ReportMetadataReply) Reset

func (x *ReportMetadataReply) Reset()

func (*ReportMetadataReply) String

func (x *ReportMetadataReply) String() string

type ReportMetadataRequest

type ReportMetadataRequest struct {
	AppName         string             `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	Node            *Node              `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	ServiceMetadata []*ServiceMetadata `protobuf:"bytes,3,rep,name=service_metadata,json=serviceMetadata,proto3" json:"service_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportMetadataRequest) Descriptor deprecated

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

Deprecated: Use ReportMetadataRequest.ProtoReflect.Descriptor instead.

func (*ReportMetadataRequest) GetAppName

func (x *ReportMetadataRequest) GetAppName() string

func (*ReportMetadataRequest) GetNode

func (x *ReportMetadataRequest) GetNode() *Node

func (*ReportMetadataRequest) GetServiceMetadata

func (x *ReportMetadataRequest) GetServiceMetadata() []*ServiceMetadata

func (*ReportMetadataRequest) ProtoMessage

func (*ReportMetadataRequest) ProtoMessage()

func (*ReportMetadataRequest) ProtoReflect

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

func (*ReportMetadataRequest) Reset

func (x *ReportMetadataRequest) Reset()

func (*ReportMetadataRequest) String

func (x *ReportMetadataRequest) String() string

type ServiceContract

type ServiceContract struct {
	Services []*ServiceDescriptor `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	Types    []*TypeDescriptor    `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceContract) Descriptor deprecated

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

Deprecated: Use ServiceContract.ProtoReflect.Descriptor instead.

func (*ServiceContract) GetServices

func (x *ServiceContract) GetServices() []*ServiceDescriptor

func (*ServiceContract) GetTypes

func (x *ServiceContract) GetTypes() []*TypeDescriptor

func (*ServiceContract) ProtoMessage

func (*ServiceContract) ProtoMessage()

func (*ServiceContract) ProtoReflect

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

func (*ServiceContract) Reset

func (x *ServiceContract) Reset()

func (*ServiceContract) String

func (x *ServiceContract) String() string

type ServiceDescriptor

type ServiceDescriptor struct {
	Name    string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Methods []*MethodDescriptor `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
	// description of this service
	Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

Describes a service.

func (*ServiceDescriptor) Descriptor deprecated

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

Deprecated: Use ServiceDescriptor.ProtoReflect.Descriptor instead.

func (*ServiceDescriptor) GetDescription

func (x *ServiceDescriptor) GetDescription() string

func (*ServiceDescriptor) GetMethods

func (x *ServiceDescriptor) GetMethods() []*MethodDescriptor

func (*ServiceDescriptor) GetName

func (x *ServiceDescriptor) GetName() string

func (*ServiceDescriptor) ProtoMessage

func (*ServiceDescriptor) ProtoMessage()

func (*ServiceDescriptor) ProtoReflect

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

func (*ServiceDescriptor) Reset

func (x *ServiceDescriptor) Reset()

func (*ServiceDescriptor) String

func (x *ServiceDescriptor) String() string

type ServiceMetadata

type ServiceMetadata struct {
	ListeningAddresses []*SocketAddress `protobuf:"bytes,1,rep,name=listening_addresses,json=listeningAddresses,proto3" json:"listening_addresses,omitempty"`
	Protocols          []string         `protobuf:"bytes,2,rep,name=protocols,proto3" json:"protocols,omitempty"`
	ServiceContract    *ServiceContract `protobuf:"bytes,3,opt,name=service_contract,json=serviceContract,proto3" json:"service_contract,omitempty"`
	// contains filtered or unexported fields
}

Define services on same address and port

func (*ServiceMetadata) Descriptor deprecated

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

Deprecated: Use ServiceMetadata.ProtoReflect.Descriptor instead.

func (*ServiceMetadata) GetListeningAddresses

func (x *ServiceMetadata) GetListeningAddresses() []*SocketAddress

func (*ServiceMetadata) GetProtocols

func (x *ServiceMetadata) GetProtocols() []string

func (*ServiceMetadata) GetServiceContract

func (x *ServiceMetadata) GetServiceContract() *ServiceContract

func (*ServiceMetadata) ProtoMessage

func (*ServiceMetadata) ProtoMessage()

func (*ServiceMetadata) ProtoReflect

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

func (*ServiceMetadata) Reset

func (x *ServiceMetadata) Reset()

func (*ServiceMetadata) String

func (x *ServiceMetadata) String() string

type ServiceOptions

type ServiceOptions struct {

	// Is this service deprecated?
	// Depending on the target platform, this can emit Deprecated annotations
	// for the service, or it will be completely ignored; in the very least,
	// this is a formalization for deprecating services.
	Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,proto3,oneof" json:"deprecated,omitempty"` // [default = false];
	// The parser stores options it doesn't recognize here. See above.
	UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption,proto3" json:"uninterpreted_option,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceOptions) Descriptor deprecated

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

Deprecated: Use ServiceOptions.ProtoReflect.Descriptor instead.

func (*ServiceOptions) GetDeprecated

func (x *ServiceOptions) GetDeprecated() bool

func (*ServiceOptions) GetUninterpretedOption

func (x *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption

func (*ServiceOptions) ProtoMessage

func (*ServiceOptions) ProtoMessage()

func (*ServiceOptions) ProtoReflect

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

func (*ServiceOptions) Reset

func (x *ServiceOptions) Reset()

func (*ServiceOptions) String

func (x *ServiceOptions) String() string

type SocketAddress

type SocketAddress struct {

	// The address for this socket.
	// This address shouldn't be 0.0.0.0/127.0.0.1, because those cannot identity
	// or access from external
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PortValue uint32 `protobuf:"varint,2,opt,name=port_value,json=portValue,proto3" json:"port_value,omitempty"`
	// contains filtered or unexported fields
}

func (*SocketAddress) Descriptor deprecated

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

Deprecated: Use SocketAddress.ProtoReflect.Descriptor instead.

func (*SocketAddress) GetAddress

func (x *SocketAddress) GetAddress() string

func (*SocketAddress) GetPortValue

func (x *SocketAddress) GetPortValue() uint32

func (*SocketAddress) ProtoMessage

func (*SocketAddress) ProtoMessage()

func (*SocketAddress) ProtoReflect

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

func (*SocketAddress) Reset

func (x *SocketAddress) Reset()

func (*SocketAddress) String

func (x *SocketAddress) String() string

type TypeDescriptor

type TypeDescriptor struct {
	Name          string                          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Fields        []*FieldDescriptor              `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	Options       *MessageOptions                 `protobuf:"bytes,7,opt,name=options,proto3,oneof" json:"options,omitempty"`
	ReservedRange []*TypeDescriptor_ReservedRange `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange,proto3" json:"reserved_range,omitempty"`
	// Reserved field names, which may not be used by fields in the same message.
	// A given name may only be reserved once.
	ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName,proto3" json:"reserved_name,omitempty"`
	// contains filtered or unexported fields
}

Describes a message type.

func (*TypeDescriptor) Descriptor deprecated

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

Deprecated: Use TypeDescriptor.ProtoReflect.Descriptor instead.

func (*TypeDescriptor) GetFields

func (x *TypeDescriptor) GetFields() []*FieldDescriptor

func (*TypeDescriptor) GetName

func (x *TypeDescriptor) GetName() string

func (*TypeDescriptor) GetOptions

func (x *TypeDescriptor) GetOptions() *MessageOptions

func (*TypeDescriptor) GetReservedName

func (x *TypeDescriptor) GetReservedName() []string

func (*TypeDescriptor) GetReservedRange

func (x *TypeDescriptor) GetReservedRange() []*TypeDescriptor_ReservedRange

func (*TypeDescriptor) ProtoMessage

func (*TypeDescriptor) ProtoMessage()

func (*TypeDescriptor) ProtoReflect

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

func (*TypeDescriptor) Reset

func (x *TypeDescriptor) Reset()

func (*TypeDescriptor) String

func (x *TypeDescriptor) String() string

type TypeDescriptor_ReservedRange

type TypeDescriptor_ReservedRange struct {
	Start *int32 `protobuf:"varint,1,opt,name=start,proto3,oneof" json:"start,omitempty"` // Inclusive.
	End   *int32 `protobuf:"varint,2,opt,name=end,proto3,oneof" json:"end,omitempty"`     // Exclusive.
	// contains filtered or unexported fields
}

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

func (*TypeDescriptor_ReservedRange) Descriptor deprecated

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

Deprecated: Use TypeDescriptor_ReservedRange.ProtoReflect.Descriptor instead.

func (*TypeDescriptor_ReservedRange) GetEnd

func (x *TypeDescriptor_ReservedRange) GetEnd() int32

func (*TypeDescriptor_ReservedRange) GetStart

func (x *TypeDescriptor_ReservedRange) GetStart() int32

func (*TypeDescriptor_ReservedRange) ProtoMessage

func (*TypeDescriptor_ReservedRange) ProtoMessage()

func (*TypeDescriptor_ReservedRange) ProtoReflect

func (*TypeDescriptor_ReservedRange) Reset

func (x *TypeDescriptor_ReservedRange) Reset()

func (*TypeDescriptor_ReservedRange) String

type UnimplementedMetadataServiceServer

type UnimplementedMetadataServiceServer struct {
}

UnimplementedMetadataServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMetadataServiceServer) ReportMetadata

type UninterpretedOption

type UninterpretedOption struct {
	Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name,proto3" json:"name,omitempty"`
	// The value of the uninterpreted option, in whatever type the tokenizer
	// identified it as during parsing. Exactly one of these should be set.
	IdentifierValue  *string  `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue,proto3,oneof" json:"identifier_value,omitempty"`
	PositiveIntValue *uint64  `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue,proto3,oneof" json:"positive_int_value,omitempty"`
	NegativeIntValue *int64   `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue,proto3,oneof" json:"negative_int_value,omitempty"`
	DoubleValue      *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof" json:"double_value,omitempty"`
	StringValue      []byte   `protobuf:"bytes,7,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
	AggregateValue   *string  `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue,proto3,oneof" json:"aggregate_value,omitempty"`
	// contains filtered or unexported fields
}

A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.

func (*UninterpretedOption) Descriptor deprecated

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

Deprecated: Use UninterpretedOption.ProtoReflect.Descriptor instead.

func (*UninterpretedOption) GetAggregateValue

func (x *UninterpretedOption) GetAggregateValue() string

func (*UninterpretedOption) GetDoubleValue

func (x *UninterpretedOption) GetDoubleValue() float64

func (*UninterpretedOption) GetIdentifierValue

func (x *UninterpretedOption) GetIdentifierValue() string

func (*UninterpretedOption) GetName

func (*UninterpretedOption) GetNegativeIntValue

func (x *UninterpretedOption) GetNegativeIntValue() int64

func (*UninterpretedOption) GetPositiveIntValue

func (x *UninterpretedOption) GetPositiveIntValue() uint64

func (*UninterpretedOption) GetStringValue

func (x *UninterpretedOption) GetStringValue() []byte

func (*UninterpretedOption) ProtoMessage

func (*UninterpretedOption) ProtoMessage()

func (*UninterpretedOption) ProtoReflect

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

func (*UninterpretedOption) Reset

func (x *UninterpretedOption) Reset()

func (*UninterpretedOption) String

func (x *UninterpretedOption) String() string

type UninterpretedOption_NamePart

type UninterpretedOption_NamePart struct {
	NamePart    string `protobuf:"bytes,1,opt,name=name_part,json=namePart,proto3" json:"name_part,omitempty"`
	IsExtension bool   `protobuf:"varint,2,opt,name=is_extension,json=isExtension,proto3" json:"is_extension,omitempty"`
	// contains filtered or unexported fields
}

The name of the uninterpreted option. Each string represents a segment in a dot-separated name. is_extension is true iff a segment represents an extension (denoted with parentheses in options specs in .proto files). E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents "foo.(bar.baz).qux".

func (*UninterpretedOption_NamePart) Descriptor deprecated

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

Deprecated: Use UninterpretedOption_NamePart.ProtoReflect.Descriptor instead.

func (*UninterpretedOption_NamePart) GetIsExtension

func (x *UninterpretedOption_NamePart) GetIsExtension() bool

func (*UninterpretedOption_NamePart) GetNamePart

func (x *UninterpretedOption_NamePart) GetNamePart() string

func (*UninterpretedOption_NamePart) ProtoMessage

func (*UninterpretedOption_NamePart) ProtoMessage()

func (*UninterpretedOption_NamePart) ProtoReflect

func (*UninterpretedOption_NamePart) Reset

func (x *UninterpretedOption_NamePart) Reset()

func (*UninterpretedOption_NamePart) String

type UnsafeMetadataServiceServer

type UnsafeMetadataServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMetadataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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