Documentation
¶
Index ¶
- Variables
- func RegisterRootManagerAPIServer(s grpc.ServiceRegistrar, srv RootManagerAPIServer)
- type RootManagerAPIClient
- type RootManagerAPIServer
- type ShutdownRequest
- type ShutdownResponse
- type StatusRequest
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetHosts() *api.HostsStatus
- func (x *StatusResponse) GetLocalnet() *api.LocalNetStatus
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type UnimplementedRootManagerAPIServer
- type UnsafeRootManagerAPIServer
Constants ¶
This section is empty.
Variables ¶
var File_internal_locald_api_rootmanager_root_manager_api_proto protoreflect.FileDescriptor
var RootManagerAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rootmanager.RootManagerAPI", HandlerType: (*RootManagerAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", Handler: _RootManagerAPI_Status_Handler, }, { MethodName: "Shutdown", Handler: _RootManagerAPI_Shutdown_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/locald/api/rootmanager/root_manager_api.proto", }
RootManagerAPI_ServiceDesc is the grpc.ServiceDesc for RootManagerAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRootManagerAPIServer ¶
func RegisterRootManagerAPIServer(s grpc.ServiceRegistrar, srv RootManagerAPIServer)
Types ¶
type RootManagerAPIClient ¶
type RootManagerAPIClient interface { // This method returns the status of the root controller Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) // This method requests the root controller to shutdown Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) }
RootManagerAPIClient is the client API for RootManagerAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRootManagerAPIClient ¶
func NewRootManagerAPIClient(cc grpc.ClientConnInterface) RootManagerAPIClient
type RootManagerAPIServer ¶
type RootManagerAPIServer interface { // This method returns the status of the root controller Status(context.Context, *StatusRequest) (*StatusResponse, error) // This method requests the root controller to shutdown Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) // contains filtered or unexported methods }
RootManagerAPIServer is the server API for RootManagerAPI service. All implementations must embed UnimplementedRootManagerAPIServer for forward compatibility
type ShutdownRequest ¶
type ShutdownRequest struct {
// contains filtered or unexported fields
}
func (*ShutdownRequest) Descriptor
deprecated
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) ProtoMessage ¶
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶
type ShutdownResponse struct {
// contains filtered or unexported fields
}
func (*ShutdownResponse) Descriptor
deprecated
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) ProtoMessage ¶
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶
func (x *ShutdownResponse) String() string
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct { Localnet *api.LocalNetStatus `protobuf:"bytes,1,opt,name=localnet,proto3" json:"localnet,omitempty"` Hosts *api.HostsStatus `protobuf:"bytes,2,opt,name=hosts,proto3" json:"hosts,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetHosts ¶
func (x *StatusResponse) GetHosts() *api.HostsStatus
func (*StatusResponse) GetLocalnet ¶
func (x *StatusResponse) GetLocalnet() *api.LocalNetStatus
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type UnimplementedRootManagerAPIServer ¶
type UnimplementedRootManagerAPIServer struct { }
UnimplementedRootManagerAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedRootManagerAPIServer) Shutdown ¶
func (UnimplementedRootManagerAPIServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
func (UnimplementedRootManagerAPIServer) Status ¶
func (UnimplementedRootManagerAPIServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
type UnsafeRootManagerAPIServer ¶
type UnsafeRootManagerAPIServer interface {
// contains filtered or unexported methods
}
UnsafeRootManagerAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RootManagerAPIServer will result in compilation errors.