Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServerInfoServer(s grpc.ServiceRegistrar, srv ServerInfoServer)
- type GetServerInfoRequest
- func (*GetServerInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetServerInfoRequest) ProtoMessage()
- func (x *GetServerInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetServerInfoRequest) Reset()
- func (x *GetServerInfoRequest) String() string
- func (m *GetServerInfoRequest) Validate() error
- func (m *GetServerInfoRequest) ValidateAll() error
- type GetServerInfoRequestMultiError
- type GetServerInfoRequestValidationError
- func (e GetServerInfoRequestValidationError) Cause() error
- func (e GetServerInfoRequestValidationError) Error() string
- func (e GetServerInfoRequestValidationError) ErrorName() string
- func (e GetServerInfoRequestValidationError) Field() string
- func (e GetServerInfoRequestValidationError) Key() bool
- func (e GetServerInfoRequestValidationError) Reason() string
- 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
- func (m *GetServerInfoResponse) Validate() error
- func (m *GetServerInfoResponse) ValidateAll() error
- type GetServerInfoResponseMultiError
- type GetServerInfoResponseValidationError
- func (e GetServerInfoResponseValidationError) Cause() error
- func (e GetServerInfoResponseValidationError) Error() string
- func (e GetServerInfoResponseValidationError) ErrorName() string
- func (e GetServerInfoResponseValidationError) Field() string
- func (e GetServerInfoResponseValidationError) Key() bool
- func (e GetServerInfoResponseValidationError) Reason() 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
func (*GetServerInfoRequest) Validate ¶
func (m *GetServerInfoRequest) Validate() error
Validate checks the field values on GetServerInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetServerInfoRequest) ValidateAll ¶
func (m *GetServerInfoRequest) ValidateAll() error
ValidateAll checks the field values on GetServerInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetServerInfoRequestMultiError, or nil if none found.
type GetServerInfoRequestMultiError ¶
type GetServerInfoRequestMultiError []error
GetServerInfoRequestMultiError is an error wrapping multiple validation errors returned by GetServerInfoRequest.ValidateAll() if the designated constraints aren't met.
func (GetServerInfoRequestMultiError) AllErrors ¶
func (m GetServerInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerInfoRequestMultiError) Error ¶
func (m GetServerInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerInfoRequestValidationError ¶
type GetServerInfoRequestValidationError struct {
// contains filtered or unexported fields
}
GetServerInfoRequestValidationError is the validation error returned by GetServerInfoRequest.Validate if the designated constraints aren't met.
func (GetServerInfoRequestValidationError) Cause ¶
func (e GetServerInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetServerInfoRequestValidationError) Error ¶
func (e GetServerInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerInfoRequestValidationError) ErrorName ¶
func (e GetServerInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerInfoRequestValidationError) Field ¶
func (e GetServerInfoRequestValidationError) Field() string
Field function returns field value.
func (GetServerInfoRequestValidationError) Key ¶
func (e GetServerInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetServerInfoRequestValidationError) Reason ¶
func (e GetServerInfoRequestValidationError) Reason() string
Reason function returns reason value.
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
func (*GetServerInfoResponse) Validate ¶
func (m *GetServerInfoResponse) Validate() error
Validate checks the field values on GetServerInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetServerInfoResponse) ValidateAll ¶
func (m *GetServerInfoResponse) ValidateAll() error
ValidateAll checks the field values on GetServerInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetServerInfoResponseMultiError, or nil if none found.
type GetServerInfoResponseMultiError ¶
type GetServerInfoResponseMultiError []error
GetServerInfoResponseMultiError is an error wrapping multiple validation errors returned by GetServerInfoResponse.ValidateAll() if the designated constraints aren't met.
func (GetServerInfoResponseMultiError) AllErrors ¶
func (m GetServerInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerInfoResponseMultiError) Error ¶
func (m GetServerInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerInfoResponseValidationError ¶
type GetServerInfoResponseValidationError struct {
// contains filtered or unexported fields
}
GetServerInfoResponseValidationError is the validation error returned by GetServerInfoResponse.Validate if the designated constraints aren't met.
func (GetServerInfoResponseValidationError) Cause ¶
func (e GetServerInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (GetServerInfoResponseValidationError) Error ¶
func (e GetServerInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerInfoResponseValidationError) ErrorName ¶
func (e GetServerInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerInfoResponseValidationError) Field ¶
func (e GetServerInfoResponseValidationError) Field() string
Field function returns field value.
func (GetServerInfoResponseValidationError) Key ¶
func (e GetServerInfoResponseValidationError) Key() bool
Key function returns key value.
func (GetServerInfoResponseValidationError) Reason ¶
func (e GetServerInfoResponseValidationError) Reason() string
Reason function returns reason value.
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.