Documentation ¶
Overview ¶
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Index ¶
- Variables
- func RegisterCoordinatorServer(s grpc.ServiceRegistrar, srv CoordinatorServer)
- type ClientToServer
- func (in *ClientToServer) DeepCopy() *ClientToServer
- func (in *ClientToServer) DeepCopyInterface() interface{}
- func (in *ClientToServer) DeepCopyInto(out *ClientToServer)
- func (*ClientToServer) Descriptor() ([]byte, []int)deprecated
- func (x *ClientToServer) GetHello() *ClientToServer_Hello
- func (m *ClientToServer) GetMsg() isClientToServer_Msg
- func (x *ClientToServer) GetResponse() *Response
- func (msg *ClientToServer) MarshalJSON() ([]byte, error)
- func (*ClientToServer) ProtoMessage()
- func (x *ClientToServer) ProtoReflect() protoreflect.Message
- func (x *ClientToServer) Reset()
- func (x *ClientToServer) String() string
- func (msg *ClientToServer) UnmarshalJSON(b []byte) error
- type ClientToServer_Hello
- func (in *ClientToServer_Hello) DeepCopy() *ClientToServer_Hello
- func (in *ClientToServer_Hello) DeepCopyInterface() interface{}
- func (in *ClientToServer_Hello) DeepCopyInto(out *ClientToServer_Hello)
- func (*ClientToServer_Hello) Descriptor() ([]byte, []int)deprecated
- func (x *ClientToServer_Hello) GetName() string
- func (x *ClientToServer_Hello) GetNextId() uint64
- func (msg *ClientToServer_Hello) MarshalJSON() ([]byte, error)
- func (*ClientToServer_Hello) ProtoMessage()
- func (x *ClientToServer_Hello) ProtoReflect() protoreflect.Message
- func (x *ClientToServer_Hello) Reset()
- func (x *ClientToServer_Hello) String() string
- func (msg *ClientToServer_Hello) UnmarshalJSON(b []byte) error
- type ClientToServer_Hello_
- type ClientToServer_Response
- type CoordinatorClient
- type CoordinatorServer
- type Coordinator_ConnectClient
- type Coordinator_ConnectServer
- type Request
- func (in *Request) DeepCopy() *Request
- func (in *Request) DeepCopyInterface() interface{}
- func (in *Request) DeepCopyInto(out *Request)
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetId() uint64
- func (x *Request) GetPayload() *anypb.Any
- func (x *Request) GetTimeout() *durationpb.Duration
- func (msg *Request) MarshalJSON() ([]byte, error)
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- func (msg *Request) UnmarshalJSON(b []byte) error
- type Response
- func (in *Response) DeepCopy() *Response
- func (in *Response) DeepCopyInterface() interface{}
- func (in *Response) DeepCopyInto(out *Response)
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetError() *status.Status
- func (x *Response) GetId() uint64
- func (x *Response) GetPayload() []byte
- func (m *Response) GetResult() isResponse_Result
- func (msg *Response) MarshalJSON() ([]byte, error)
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- func (msg *Response) UnmarshalJSON(b []byte) error
- type Response_Error
- type Response_Payload
- type ServerToClient
- func (in *ServerToClient) DeepCopy() *ServerToClient
- func (in *ServerToClient) DeepCopyInterface() interface{}
- func (in *ServerToClient) DeepCopyInto(out *ServerToClient)
- func (*ServerToClient) Descriptor() ([]byte, []int)deprecated
- func (x *ServerToClient) GetCancelId() uint64
- func (m *ServerToClient) GetCommand() isServerToClient_Command
- func (x *ServerToClient) GetRequest() *Request
- func (msg *ServerToClient) MarshalJSON() ([]byte, error)
- func (*ServerToClient) ProtoMessage()
- func (x *ServerToClient) ProtoReflect() protoreflect.Message
- func (x *ServerToClient) Reset()
- func (x *ServerToClient) String() string
- func (msg *ServerToClient) UnmarshalJSON(b []byte) error
- type ServerToClient_CancelId
- type ServerToClient_Request
- type UnimplementedCoordinatorServer
- type UnsafeCoordinatorServer
Constants ¶
This section is empty.
Variables ¶
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)
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 ¶
func (in *ClientToServer_Hello) DeepCopy() *ClientToServer_Hello
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.
func NewCoordinatorClient ¶
func NewCoordinatorClient(cc grpc.ClientConnInterface) CoordinatorClient
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 ¶
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 ¶
DeepCopyInto supports using Request within kubernetes types, where deepcopy-gen is used.
func (*Request) Descriptor
deprecated
func (*Request) GetPayload ¶
func (*Request) GetTimeout ¶
func (x *Request) GetTimeout() *durationpb.Duration
func (*Request) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) UnmarshalJSON ¶
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 ¶
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 ¶
DeepCopyInto supports using Response within kubernetes types, where deepcopy-gen is used.
func (*Response) Descriptor
deprecated
func (*Response) GetPayload ¶
func (*Response) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type Response_Error ¶
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 ¶
func (UnimplementedCoordinatorServer) Connect(Coordinator_ConnectServer) error
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.