info

package
v0.0.0-...-b36e3b8 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_info_info_proto protoreflect.FileDescriptor
View Source
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"`
	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 (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.

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

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