Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)
- type GetInfoRequest
- type GetInfoResponse
- type InfoServiceClient
- type InfoServiceServer
- type ServiceInformation
- func (*ServiceInformation) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceInformation) GetDetails() map[string]string
- func (x *ServiceInformation) GetVersion() string
- func (*ServiceInformation) ProtoMessage()
- func (x *ServiceInformation) ProtoReflect() protoreflect.Message
- func (x *ServiceInformation) Reset()
- func (x *ServiceInformation) String() string
- type UnimplementedInfoServiceServer
- type UnsafeInfoServiceServer
Constants ¶
const (
InfoService_GetInfo_FullMethodName = "/info.InfoService/GetInfo"
)
Variables ¶
var File_protos_info_info_proto protoreflect.FileDescriptor
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
func NewInfoServiceClient ¶
func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient
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 ¶
func (UnimplementedInfoServiceServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
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.