rpc

package
v17.6.2-rc30 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 10 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

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.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

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