v1

package
v0.0.0-...-ac5cff2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SubscribeOpType_name = map[int32]string{
		0: "SUBSCRIBE",
		1: "UNSUBSCRIBE",
	}
	SubscribeOpType_value = map[string]int32{
		"SUBSCRIBE":   0,
		"UNSUBSCRIBE": 1,
	}
)

Enum value maps for SubscribeOpType.

View Source
var File_protocol_proto protoreflect.FileDescriptor
View Source
var OpenSergoUniversalTransportService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "io.opensergo.proto.transport.v1.OpenSergoUniversalTransportService",
	HandlerType: (*OpenSergoUniversalTransportServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeConfig",
			Handler:       _OpenSergoUniversalTransportService_SubscribeConfig_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "protocol.proto",
}

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

Functions

Types

type ControlPlaneDesc

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

func (*ControlPlaneDesc) Descriptor deprecated

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

Deprecated: Use ControlPlaneDesc.ProtoReflect.Descriptor instead.

func (*ControlPlaneDesc) GetIdentifier

func (x *ControlPlaneDesc) GetIdentifier() string

func (*ControlPlaneDesc) ProtoMessage

func (*ControlPlaneDesc) ProtoMessage()

func (*ControlPlaneDesc) ProtoReflect

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

func (*ControlPlaneDesc) Reset

func (x *ControlPlaneDesc) Reset()

func (*ControlPlaneDesc) String

func (x *ControlPlaneDesc) String() string

type DataWithVersion

type DataWithVersion struct {
	Data    []*anypb.Any `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Version int64        `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*DataWithVersion) Descriptor deprecated

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

Deprecated: Use DataWithVersion.ProtoReflect.Descriptor instead.

func (*DataWithVersion) GetData

func (x *DataWithVersion) GetData() []*anypb.Any

func (*DataWithVersion) GetVersion

func (x *DataWithVersion) GetVersion() int64

func (*DataWithVersion) ProtoMessage

func (*DataWithVersion) ProtoMessage()

func (*DataWithVersion) ProtoReflect

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

func (*DataWithVersion) Reset

func (x *DataWithVersion) Reset()

func (*DataWithVersion) String

func (x *DataWithVersion) String() string

type OpenSergoUniversalTransportServiceClient

type OpenSergoUniversalTransportServiceClient interface {
	SubscribeConfig(ctx context.Context, opts ...grpc.CallOption) (OpenSergoUniversalTransportService_SubscribeConfigClient, error)
}

OpenSergoUniversalTransportServiceClient is the client API for OpenSergoUniversalTransportService 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 OpenSergoUniversalTransportServiceServer

type OpenSergoUniversalTransportServiceServer interface {
	SubscribeConfig(OpenSergoUniversalTransportService_SubscribeConfigServer) error
	// contains filtered or unexported methods
}

OpenSergoUniversalTransportServiceServer is the server API for OpenSergoUniversalTransportService service. All implementations must embed UnimplementedOpenSergoUniversalTransportServiceServer for forward compatibility

type OpenSergoUniversalTransportService_SubscribeConfigClient

type OpenSergoUniversalTransportService_SubscribeConfigClient interface {
	Send(*SubscribeRequest) error
	Recv() (*SubscribeResponse, error)
	grpc.ClientStream
}

type OpenSergoUniversalTransportService_SubscribeConfigServer

type OpenSergoUniversalTransportService_SubscribeConfigServer interface {
	Send(*SubscribeResponse) error
	Recv() (*SubscribeRequest, error)
	grpc.ServerStream
}

type Status

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

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCode

func (x *Status) GetCode() int32

func (*Status) GetDetails

func (x *Status) GetDetails() []*anypb.Any

func (*Status) GetMessage

func (x *Status) GetMessage() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type SubscribeLabelKV

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

func (*SubscribeLabelKV) Descriptor deprecated

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

Deprecated: Use SubscribeLabelKV.ProtoReflect.Descriptor instead.

func (*SubscribeLabelKV) GetKey

func (x *SubscribeLabelKV) GetKey() string

func (*SubscribeLabelKV) GetValue

func (x *SubscribeLabelKV) GetValue() string

func (*SubscribeLabelKV) ProtoMessage

func (*SubscribeLabelKV) ProtoMessage()

func (*SubscribeLabelKV) ProtoReflect

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

func (*SubscribeLabelKV) Reset

func (x *SubscribeLabelKV) Reset()

func (*SubscribeLabelKV) String

func (x *SubscribeLabelKV) String() string

type SubscribeOpType

type SubscribeOpType int32
const (
	SubscribeOpType_SUBSCRIBE   SubscribeOpType = 0
	SubscribeOpType_UNSUBSCRIBE SubscribeOpType = 1
)

func (SubscribeOpType) Descriptor

func (SubscribeOpType) Enum

func (x SubscribeOpType) Enum() *SubscribeOpType

func (SubscribeOpType) EnumDescriptor deprecated

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

Deprecated: Use SubscribeOpType.Descriptor instead.

func (SubscribeOpType) Number

func (SubscribeOpType) String

func (x SubscribeOpType) String() string

func (SubscribeOpType) Type

type SubscribeRequest

type SubscribeRequest struct {
	Target      *SubscribeRequestTarget `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	OpType      SubscribeOpType         `` /* 133-byte string literal not displayed */
	ResponseAck string                  `protobuf:"bytes,3,opt,name=response_ack,json=responseAck,proto3" json:"response_ack,omitempty"`
	Attachments []*anypb.Any            `protobuf:"bytes,4,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// client-to-server response status
	Status     *Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	Identifier string  `protobuf:"bytes,6,opt,name=identifier,proto3" json:"identifier,omitempty"`
	RequestId  string  `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRequest) GetAttachments

func (x *SubscribeRequest) GetAttachments() []*anypb.Any

func (*SubscribeRequest) GetIdentifier

func (x *SubscribeRequest) GetIdentifier() string

func (*SubscribeRequest) GetOpType

func (x *SubscribeRequest) GetOpType() SubscribeOpType

func (*SubscribeRequest) GetRequestId

func (x *SubscribeRequest) GetRequestId() string

func (*SubscribeRequest) GetResponseAck

func (x *SubscribeRequest) GetResponseAck() string

func (*SubscribeRequest) GetStatus

func (x *SubscribeRequest) GetStatus() *Status

func (*SubscribeRequest) GetTarget

func (x *SubscribeRequest) GetTarget() *SubscribeRequestTarget

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) ProtoReflect

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

func (*SubscribeRequest) Reset

func (x *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (x *SubscribeRequest) String() string

type SubscribeRequestTarget

type SubscribeRequestTarget struct {
	Namespace string              `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	App       string              `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
	Labels    []*SubscribeLabelKV `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
	Kinds     []string            `protobuf:"bytes,4,rep,name=kinds,proto3" json:"kinds,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeRequestTarget) Descriptor deprecated

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

Deprecated: Use SubscribeRequestTarget.ProtoReflect.Descriptor instead.

func (*SubscribeRequestTarget) GetApp

func (x *SubscribeRequestTarget) GetApp() string

func (*SubscribeRequestTarget) GetKinds

func (x *SubscribeRequestTarget) GetKinds() []string

func (*SubscribeRequestTarget) GetLabels

func (x *SubscribeRequestTarget) GetLabels() []*SubscribeLabelKV

func (*SubscribeRequestTarget) GetNamespace

func (x *SubscribeRequestTarget) GetNamespace() string

func (*SubscribeRequestTarget) ProtoMessage

func (*SubscribeRequestTarget) ProtoMessage()

func (*SubscribeRequestTarget) ProtoReflect

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

func (*SubscribeRequestTarget) Reset

func (x *SubscribeRequestTarget) Reset()

func (*SubscribeRequestTarget) String

func (x *SubscribeRequestTarget) String() string

type SubscribeResponse

type SubscribeResponse struct {
	Status          *Status           `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Ack             string            `protobuf:"bytes,2,opt,name=ack,proto3" json:"ack,omitempty"`
	Namespace       string            `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	App             string            `protobuf:"bytes,4,opt,name=app,proto3" json:"app,omitempty"`
	Kind            string            `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"`
	DataWithVersion *DataWithVersion  `protobuf:"bytes,6,opt,name=dataWithVersion,proto3" json:"dataWithVersion,omitempty"`
	ControlPlane    *ControlPlaneDesc `protobuf:"bytes,7,opt,name=control_plane,json=controlPlane,proto3" json:"control_plane,omitempty"`
	ResponseId      string            `protobuf:"bytes,8,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeResponse) Descriptor deprecated

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

Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.

func (*SubscribeResponse) GetAck

func (x *SubscribeResponse) GetAck() string

func (*SubscribeResponse) GetApp

func (x *SubscribeResponse) GetApp() string

func (*SubscribeResponse) GetControlPlane

func (x *SubscribeResponse) GetControlPlane() *ControlPlaneDesc

func (*SubscribeResponse) GetDataWithVersion

func (x *SubscribeResponse) GetDataWithVersion() *DataWithVersion

func (*SubscribeResponse) GetKind

func (x *SubscribeResponse) GetKind() string

func (*SubscribeResponse) GetNamespace

func (x *SubscribeResponse) GetNamespace() string

func (*SubscribeResponse) GetResponseId

func (x *SubscribeResponse) GetResponseId() string

func (*SubscribeResponse) GetStatus

func (x *SubscribeResponse) GetStatus() *Status

func (*SubscribeResponse) ProtoMessage

func (*SubscribeResponse) ProtoMessage()

func (*SubscribeResponse) ProtoReflect

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

func (*SubscribeResponse) Reset

func (x *SubscribeResponse) Reset()

func (*SubscribeResponse) String

func (x *SubscribeResponse) String() string

type UnimplementedOpenSergoUniversalTransportServiceServer

type UnimplementedOpenSergoUniversalTransportServiceServer struct {
}

UnimplementedOpenSergoUniversalTransportServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOpenSergoUniversalTransportServiceServer) SubscribeConfig

type UnsafeOpenSergoUniversalTransportServiceServer

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

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

Jump to

Keyboard shortcuts

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