rpcv1

package
v1.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Coordinator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aperture.rpc.v1.Coordinator",
	HandlerType: (*CoordinatorServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Connect",
			Handler:       _Coordinator_Connect_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "aperture/rpc/v1/rpc.proto",
}

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

View Source
var File_aperture_rpc_v1_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterCoordinatorServer

func RegisterCoordinatorServer(s grpc.ServiceRegistrar, srv CoordinatorServer)

Types

type ClientToServer

type ClientToServer struct {

	// Types that are assignable to Msg:
	//	*ClientToServer_Hello_
	//	*ClientToServer_Response
	Msg isClientToServer_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*ClientToServer) DeepCopy

func (in *ClientToServer) DeepCopy() *ClientToServer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer. Required by controller-gen.

func (*ClientToServer) DeepCopyInterface

func (in *ClientToServer) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer. Required by controller-gen.

func (*ClientToServer) DeepCopyInto

func (in *ClientToServer) DeepCopyInto(out *ClientToServer)

DeepCopyInto supports using ClientToServer within kubernetes types, where deepcopy-gen is used.

func (*ClientToServer) Descriptor deprecated

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

Deprecated: Use ClientToServer.ProtoReflect.Descriptor instead.

func (*ClientToServer) GetHello

func (x *ClientToServer) GetHello() *ClientToServer_Hello

func (*ClientToServer) GetMsg

func (m *ClientToServer) GetMsg() isClientToServer_Msg

func (*ClientToServer) GetResponse

func (x *ClientToServer) GetResponse() *Response

func (*ClientToServer) MarshalJSON

func (msg *ClientToServer) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ClientToServer) ProtoMessage

func (*ClientToServer) ProtoMessage()

func (*ClientToServer) ProtoReflect

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

func (*ClientToServer) Reset

func (x *ClientToServer) Reset()

func (*ClientToServer) String

func (x *ClientToServer) String() string

func (*ClientToServer) UnmarshalJSON

func (msg *ClientToServer) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ClientToServer_Hello

type ClientToServer_Hello struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	NextId uint64 `protobuf:"varint,2,opt,name=next_id,json=nextId,proto3" json:"next_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientToServer_Hello) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer_Hello. Required by controller-gen.

func (*ClientToServer_Hello) DeepCopyInterface

func (in *ClientToServer_Hello) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ClientToServer_Hello. Required by controller-gen.

func (*ClientToServer_Hello) DeepCopyInto

func (in *ClientToServer_Hello) DeepCopyInto(out *ClientToServer_Hello)

DeepCopyInto supports using ClientToServer_Hello within kubernetes types, where deepcopy-gen is used.

func (*ClientToServer_Hello) Descriptor deprecated

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

Deprecated: Use ClientToServer_Hello.ProtoReflect.Descriptor instead.

func (*ClientToServer_Hello) GetName

func (x *ClientToServer_Hello) GetName() string

func (*ClientToServer_Hello) GetNextId

func (x *ClientToServer_Hello) GetNextId() uint64

func (*ClientToServer_Hello) MarshalJSON

func (msg *ClientToServer_Hello) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ClientToServer_Hello) ProtoMessage

func (*ClientToServer_Hello) ProtoMessage()

func (*ClientToServer_Hello) ProtoReflect

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

func (*ClientToServer_Hello) Reset

func (x *ClientToServer_Hello) Reset()

func (*ClientToServer_Hello) String

func (x *ClientToServer_Hello) String() string

func (*ClientToServer_Hello) UnmarshalJSON

func (msg *ClientToServer_Hello) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ClientToServer_Hello_

type ClientToServer_Hello_ struct {
	Hello *ClientToServer_Hello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}

type ClientToServer_Response

type ClientToServer_Response struct {
	Response *Response `protobuf:"bytes,2,opt,name=response,proto3,oneof"`
}

type CoordinatorClient

type CoordinatorClient interface {
	Connect(ctx context.Context, opts ...grpc.CallOption) (Coordinator_ConnectClient, error)
}

CoordinatorClient is the client API for Coordinator 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 CoordinatorServer

type CoordinatorServer interface {
	Connect(Coordinator_ConnectServer) error
}

CoordinatorServer is the server API for Coordinator service. All implementations should embed UnimplementedCoordinatorServer for forward compatibility

type Coordinator_ConnectClient

type Coordinator_ConnectClient interface {
	Send(*ClientToServer) error
	Recv() (*ServerToClient, error)
	grpc.ClientStream
}

type Coordinator_ConnectServer

type Coordinator_ConnectServer interface {
	Send(*ServerToClient) error
	Recv() (*ClientToServer, error)
	grpc.ServerStream
}

type Request

type Request struct {

	// Id of the request, this should be unique per client connection. First
	// request id on the connection should be equal to nextID from the Hello
	// message.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Mandatory timeout for processing request. Timeout is handled on
	// caller-side. After it passes, caller is no longer interested in a response,
	// and callee can forget about the request.
	Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Request payload. The method on the callee will be dispatched by request's type.
	Payload *anypb.Any `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Request. Required by controller-gen.

func (*Request) DeepCopyInterface

func (in *Request) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Request. Required by controller-gen.

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

DeepCopyInto supports using Request within kubernetes types, where deepcopy-gen is used.

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetId

func (x *Request) GetId() uint64

func (*Request) GetPayload

func (x *Request) GetPayload() *anypb.Any

func (*Request) GetTimeout

func (x *Request) GetTimeout() *durationpb.Duration

func (*Request) MarshalJSON

func (msg *Request) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

func (*Request) UnmarshalJSON

func (msg *Request) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Response

type Response struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Result:
	//	*Response_Payload
	//	*Response_Error
	Result isResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

func (*Response) DeepCopy

func (in *Response) DeepCopy() *Response

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Response. Required by controller-gen.

func (*Response) DeepCopyInterface

func (in *Response) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Response. Required by controller-gen.

func (*Response) DeepCopyInto

func (in *Response) DeepCopyInto(out *Response)

DeepCopyInto supports using Response within kubernetes types, where deepcopy-gen is used.

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetError

func (x *Response) GetError() *status.Status

func (*Response) GetId

func (x *Response) GetId() uint64

func (*Response) GetPayload

func (x *Response) GetPayload() []byte

func (*Response) GetResult

func (m *Response) GetResult() isResponse_Result

func (*Response) MarshalJSON

func (msg *Response) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) UnmarshalJSON

func (msg *Response) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Response_Error

type Response_Error struct {
	Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type Response_Payload

type Response_Payload struct {
	// Payload is a message of a type implied by request kind.
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3,oneof"`
}

type ServerToClient

type ServerToClient struct {

	// Types that are assignable to Command:
	//	*ServerToClient_Request
	//	*ServerToClient_CancelId
	Command isServerToClient_Command `protobuf_oneof:"command"`
	// contains filtered or unexported fields
}

func (*ServerToClient) DeepCopy

func (in *ServerToClient) DeepCopy() *ServerToClient

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerToClient. Required by controller-gen.

func (*ServerToClient) DeepCopyInterface

func (in *ServerToClient) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServerToClient. Required by controller-gen.

func (*ServerToClient) DeepCopyInto

func (in *ServerToClient) DeepCopyInto(out *ServerToClient)

DeepCopyInto supports using ServerToClient within kubernetes types, where deepcopy-gen is used.

func (*ServerToClient) Descriptor deprecated

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

Deprecated: Use ServerToClient.ProtoReflect.Descriptor instead.

func (*ServerToClient) GetCancelId

func (x *ServerToClient) GetCancelId() uint64

func (*ServerToClient) GetCommand

func (m *ServerToClient) GetCommand() isServerToClient_Command

func (*ServerToClient) GetRequest

func (x *ServerToClient) GetRequest() *Request

func (*ServerToClient) MarshalJSON

func (msg *ServerToClient) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ServerToClient) ProtoMessage

func (*ServerToClient) ProtoMessage()

func (*ServerToClient) ProtoReflect

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

func (*ServerToClient) Reset

func (x *ServerToClient) Reset()

func (*ServerToClient) String

func (x *ServerToClient) String() string

func (*ServerToClient) UnmarshalJSON

func (msg *ServerToClient) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ServerToClient_CancelId

type ServerToClient_CancelId struct {
	// Cancels in-flight request.
	//
	// After cancellation, the response is not expected to be received, but
	// might happen that it will be received. If so, it should be ignored.
	CancelId uint64 `protobuf:"varint,2,opt,name=cancel_id,json=cancelId,proto3,oneof"`
}

type ServerToClient_Request

type ServerToClient_Request struct {
	// Make a request to client. Expect AgentToController message in the
	// future containing Response with the same id.
	Request *Request `protobuf:"bytes,1,opt,name=request,proto3,oneof"`
}

type UnimplementedCoordinatorServer

type UnimplementedCoordinatorServer struct {
}

UnimplementedCoordinatorServer should be embedded to have forward compatible implementations.

func (UnimplementedCoordinatorServer) Connect

type UnsafeCoordinatorServer

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

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

Jump to

Keyboard shortcuts

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