info

package
v0.0.0-...-218f8e8 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	InfoService_GetInfo_FullMethodName = "/info.InfoService/GetInfo"
)

Variables

View Source
var File_protos_info_info_proto protoreflect.FileDescriptor
View Source
var InfoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "info.InfoService",
	HandlerType: (*InfoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _InfoService_GetInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/info/info.proto",
}

InfoService_ServiceDesc is the grpc.ServiceDesc for InfoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInfoServiceServer

func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)

Types

type GetInfoRequest

type GetInfoRequest struct {
	// contains filtered or unexported fields
}

Request for service information

func (*GetInfoRequest) Descriptor deprecated

func (*GetInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect

func (x *GetInfoRequest) ProtoReflect() protoreflect.Message

func (*GetInfoRequest) Reset

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (x *GetInfoRequest) String() string

type GetInfoResponse

type GetInfoResponse struct {

	// Core service information
	Info *ServiceInformation `protobuf:"bytes,1,opt,name=Info,proto3" json:"Info,omitempty"`
	// contains filtered or unexported fields
}

Response containing service information

func (*GetInfoResponse) Descriptor deprecated

func (*GetInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetInfo

func (x *GetInfoResponse) GetInfo() *ServiceInformation

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect

func (x *GetInfoResponse) ProtoReflect() protoreflect.Message

func (*GetInfoResponse) Reset

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (x *GetInfoResponse) String() string

type InfoServiceClient

type InfoServiceClient interface {
	// Get service information
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
}

InfoServiceClient is the client API for InfoService 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.

Info service provides service information

type InfoServiceServer

type InfoServiceServer interface {
	// Get service information
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	// contains filtered or unexported methods
}

InfoServiceServer is the server API for InfoService service. All implementations must embed UnimplementedInfoServiceServer for forward compatibility.

Info service provides service information

type ServiceInformation

type ServiceInformation struct {

	// Service version
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Additional service details
	Details map[string]string `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the service

func (*ServiceInformation) Descriptor deprecated

func (*ServiceInformation) Descriptor() ([]byte, []int)

Deprecated: Use ServiceInformation.ProtoReflect.Descriptor instead.

func (*ServiceInformation) GetDetails

func (x *ServiceInformation) GetDetails() map[string]string

func (*ServiceInformation) GetVersion

func (x *ServiceInformation) GetVersion() string

func (*ServiceInformation) ProtoMessage

func (*ServiceInformation) ProtoMessage()

func (*ServiceInformation) ProtoReflect

func (x *ServiceInformation) ProtoReflect() protoreflect.Message

func (*ServiceInformation) Reset

func (x *ServiceInformation) Reset()

func (*ServiceInformation) String

func (x *ServiceInformation) String() string

type UnimplementedInfoServiceServer

type UnimplementedInfoServiceServer struct{}

UnimplementedInfoServiceServer 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 (UnimplementedInfoServiceServer) GetInfo

type UnsafeInfoServiceServer

type UnsafeInfoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeInfoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InfoServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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