Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServerInfoServer(s grpc.ServiceRegistrar, srv ServerInfoServer)
- type GetServerInfoRequest
- type GetServerInfoResponse
- func (*GetServerInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetServerInfoResponse) GetCurrentServerInfo() *server_info.ServerInfo
- func (*GetServerInfoResponse) ProtoMessage()
- func (x *GetServerInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetServerInfoResponse) Reset()
- func (x *GetServerInfoResponse) String() string
- type ServerInfoClient
- type ServerInfoServer
- type UnimplementedServerInfoServer
- type UnsafeServerInfoServer
Constants ¶
const (
ServerInfo_GetServerInfo_FullMethodName = "/gitlab.agent.server_info.rpc.ServerInfo/GetServerInfo"
)
Variables ¶
var File_internal_module_server_info_rpc_rpc_proto protoreflect.FileDescriptor
var ServerInfo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitlab.agent.server_info.rpc.ServerInfo", HandlerType: (*ServerInfoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetServerInfo", Handler: _ServerInfo_GetServerInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/module/server_info/rpc/rpc.proto", }
ServerInfo_ServiceDesc is the grpc.ServiceDesc for ServerInfo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerInfoServer ¶
func RegisterServerInfoServer(s grpc.ServiceRegistrar, srv ServerInfoServer)
Types ¶
type GetServerInfoRequest ¶
type GetServerInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetServerInfoRequest) Descriptor
deprecated
func (*GetServerInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServerInfoRequest.ProtoReflect.Descriptor instead.
func (*GetServerInfoRequest) ProtoMessage ¶
func (*GetServerInfoRequest) ProtoMessage()
func (*GetServerInfoRequest) ProtoReflect ¶
func (x *GetServerInfoRequest) ProtoReflect() protoreflect.Message
func (*GetServerInfoRequest) Reset ¶
func (x *GetServerInfoRequest) Reset()
func (*GetServerInfoRequest) String ¶
func (x *GetServerInfoRequest) String() string
type GetServerInfoResponse ¶
type GetServerInfoResponse struct { CurrentServerInfo *server_info.ServerInfo `protobuf:"bytes,1,opt,name=current_server_info,proto3" json:"current_server_info,omitempty"` // contains filtered or unexported fields }
func (*GetServerInfoResponse) Descriptor
deprecated
func (*GetServerInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetServerInfoResponse.ProtoReflect.Descriptor instead.
func (*GetServerInfoResponse) GetCurrentServerInfo ¶
func (x *GetServerInfoResponse) GetCurrentServerInfo() *server_info.ServerInfo
func (*GetServerInfoResponse) ProtoMessage ¶
func (*GetServerInfoResponse) ProtoMessage()
func (*GetServerInfoResponse) ProtoReflect ¶
func (x *GetServerInfoResponse) ProtoReflect() protoreflect.Message
func (*GetServerInfoResponse) Reset ¶
func (x *GetServerInfoResponse) Reset()
func (*GetServerInfoResponse) String ¶
func (x *GetServerInfoResponse) String() string
type ServerInfoClient ¶
type ServerInfoClient interface {
GetServerInfo(ctx context.Context, in *GetServerInfoRequest, opts ...grpc.CallOption) (*GetServerInfoResponse, error)
}
ServerInfoClient is the client API for ServerInfo 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 NewServerInfoClient ¶
func NewServerInfoClient(cc grpc.ClientConnInterface) ServerInfoClient
type ServerInfoServer ¶
type ServerInfoServer interface { GetServerInfo(context.Context, *GetServerInfoRequest) (*GetServerInfoResponse, error) // contains filtered or unexported methods }
ServerInfoServer is the server API for ServerInfo service. All implementations must embed UnimplementedServerInfoServer for forward compatibility
type UnimplementedServerInfoServer ¶
type UnimplementedServerInfoServer struct { }
UnimplementedServerInfoServer must be embedded to have forward compatible implementations.
func (UnimplementedServerInfoServer) GetServerInfo ¶
func (UnimplementedServerInfoServer) GetServerInfo(context.Context, *GetServerInfoRequest) (*GetServerInfoResponse, error)
type UnsafeServerInfoServer ¶
type UnsafeServerInfoServer interface {
// contains filtered or unexported methods
}
UnsafeServerInfoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerInfoServer will result in compilation errors.