Documentation
¶
Index ¶
- Variables
- func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)
- type InfoRequest
- type InfoResponse
- func (*InfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfoResponse) GetColor() string
- func (x *InfoResponse) GetGoarch() string
- func (x *InfoResponse) GetGoos() string
- func (x *InfoResponse) GetHostname() string
- func (x *InfoResponse) GetLogo() string
- func (x *InfoResponse) GetMessage() string
- func (x *InfoResponse) GetNumcpu() string
- func (x *InfoResponse) GetNumgoroutine() string
- func (x *InfoResponse) GetRevision() string
- func (x *InfoResponse) GetRuntime() string
- func (x *InfoResponse) GetVersion() string
- func (*InfoResponse) ProtoMessage()
- func (x *InfoResponse) ProtoReflect() protoreflect.Message
- func (x *InfoResponse) Reset()
- func (x *InfoResponse) String() string
- type InfoServiceClient
- type InfoServiceServer
- type UnimplementedInfoServiceServer
- type UnsafeInfoServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_info_info_proto protoreflect.FileDescriptor
var InfoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "info.InfoService", HandlerType: (*InfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Info", Handler: _InfoService_Info_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "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 InfoRequest ¶
type InfoRequest struct {
// contains filtered or unexported fields
}
func (*InfoRequest) Descriptor
deprecated
func (*InfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) ProtoReflect ¶
func (x *InfoRequest) ProtoReflect() protoreflect.Message
func (*InfoRequest) Reset ¶
func (x *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (x *InfoRequest) String() string
type InfoResponse ¶
type InfoResponse struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` Logo string `protobuf:"bytes,5,opt,name=logo,proto3" json:"logo,omitempty"` Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` Goos string `protobuf:"bytes,7,opt,name=goos,proto3" json:"goos,omitempty"` Goarch string `protobuf:"bytes,8,opt,name=goarch,proto3" json:"goarch,omitempty"` Runtime string `protobuf:"bytes,9,opt,name=runtime,proto3" json:"runtime,omitempty"` Numgoroutine string `protobuf:"bytes,10,opt,name=numgoroutine,proto3" json:"numgoroutine,omitempty"` Numcpu string `protobuf:"bytes,11,opt,name=numcpu,proto3" json:"numcpu,omitempty"` // contains filtered or unexported fields }
func (*InfoResponse) Descriptor
deprecated
func (*InfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
func (*InfoResponse) GetColor ¶
func (x *InfoResponse) GetColor() string
func (*InfoResponse) GetGoarch ¶
func (x *InfoResponse) GetGoarch() string
func (*InfoResponse) GetGoos ¶
func (x *InfoResponse) GetGoos() string
func (*InfoResponse) GetHostname ¶
func (x *InfoResponse) GetHostname() string
func (*InfoResponse) GetLogo ¶
func (x *InfoResponse) GetLogo() string
func (*InfoResponse) GetMessage ¶
func (x *InfoResponse) GetMessage() string
func (*InfoResponse) GetNumcpu ¶
func (x *InfoResponse) GetNumcpu() string
func (*InfoResponse) GetNumgoroutine ¶
func (x *InfoResponse) GetNumgoroutine() string
func (*InfoResponse) GetRevision ¶
func (x *InfoResponse) GetRevision() string
func (*InfoResponse) GetRuntime ¶
func (x *InfoResponse) GetRuntime() string
func (*InfoResponse) GetVersion ¶
func (x *InfoResponse) GetVersion() string
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) ProtoReflect ¶
func (x *InfoResponse) ProtoReflect() protoreflect.Message
func (*InfoResponse) Reset ¶
func (x *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (x *InfoResponse) String() string
type InfoServiceClient ¶
type InfoServiceClient interface {
Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, 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.
func NewInfoServiceClient ¶
func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient
type InfoServiceServer ¶
type InfoServiceServer interface { Info(context.Context, *InfoRequest) (*InfoResponse, error) // contains filtered or unexported methods }
InfoServiceServer is the server API for InfoService service. All implementations must embed UnimplementedInfoServiceServer for forward compatibility
type UnimplementedInfoServiceServer ¶
type UnimplementedInfoServiceServer struct { }
UnimplementedInfoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedInfoServiceServer) Info ¶
func (UnimplementedInfoServiceServer) Info(context.Context, *InfoRequest) (*InfoResponse, 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.