rpc

package
v17.1.0-rc7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerInfo_GetServerInfo_FullMethodName = "/gitlab.agent.server_info.rpc.ServerInfo/GetServerInfo"
)

Variables

View Source
var File_internal_module_server_info_rpc_rpc_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (GetServerInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetServerInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetServerInfoRequestValidationError) Field

Field function returns field value.

func (GetServerInfoRequestValidationError) Key

Key function returns key value.

func (GetServerInfoRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetServerInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetServerInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetServerInfoResponseValidationError) Field

Field function returns field value.

func (GetServerInfoResponseValidationError) Key

Key function returns key value.

func (GetServerInfoResponseValidationError) Reason

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

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.

Jump to

Keyboard shortcuts

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