Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAliveServer(s grpc.ServiceRegistrar, srv AliveServer)
- type AliveClient
- type AliveServer
- type AliveStatus
- func (*AliveStatus) Descriptor() ([]byte, []int)deprecated
- func (x *AliveStatus) GetAppOrigin() string
- func (x *AliveStatus) GetAveragePower() float32
- func (x *AliveStatus) GetCpuInfo() string
- func (x *AliveStatus) GetGpuInfo() string
- func (x *AliveStatus) GetGuageHeight() uint64
- func (x *AliveStatus) GetGuageMax() uint64
- func (x *AliveStatus) GetMac() string
- func (x *AliveStatus) GetMemInfo() string
- func (x *AliveStatus) GetModelHash() string
- func (x *AliveStatus) GetName() string
- func (x *AliveStatus) GetRelay() string
- func (x *AliveStatus) GetStartupTime() uint64
- func (x *AliveStatus) GetUptime() uint64
- func (x *AliveStatus) GetVersion() string
- func (*AliveStatus) ProtoMessage()
- func (x *AliveStatus) ProtoReflect() protoreflect.Message
- func (x *AliveStatus) Reset()
- func (x *AliveStatus) String() string
- type AliveStatusResp
- func (*AliveStatusResp) Descriptor() ([]byte, []int)deprecated
- func (x *AliveStatusResp) GetDiscovery() string
- func (x *AliveStatusResp) GetSuccess() bool
- func (*AliveStatusResp) ProtoMessage()
- func (x *AliveStatusResp) ProtoReflect() protoreflect.Message
- func (x *AliveStatusResp) Reset()
- func (x *AliveStatusResp) String() string
- type UnimplementedAliveServer
- type UnsafeAliveServer
Constants ¶
const (
Alive_Hello_FullMethodName = "/v1.Alive/Hello"
)
Variables ¶
var Alive_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.Alive", HandlerType: (*AliveServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _Alive_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core/relay/proto/alive.proto", }
Alive_ServiceDesc is the grpc.ServiceDesc for Alive service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_core_relay_proto_alive_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAliveServer ¶
func RegisterAliveServer(s grpc.ServiceRegistrar, srv AliveServer)
Types ¶
type AliveClient ¶
type AliveClient interface {
Hello(ctx context.Context, in *AliveStatus, opts ...grpc.CallOption) (*AliveStatusResp, error)
}
AliveClient is the client API for Alive 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 NewAliveClient ¶
func NewAliveClient(cc grpc.ClientConnInterface) AliveClient
type AliveServer ¶
type AliveServer interface { Hello(context.Context, *AliveStatus) (*AliveStatusResp, error) // contains filtered or unexported methods }
AliveServer is the server API for Alive service. All implementations must embed UnimplementedAliveServer for forward compatibility
type AliveStatus ¶
type AliveStatus struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // app startup time StartupTime uint64 `protobuf:"varint,2,opt,name=startup_time,json=startupTime,proto3" json:"startup_time,omitempty"` // app uptime Uptime uint64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` // amount of slots currently occupying the app GuageHeight uint64 `protobuf:"varint,4,opt,name=guage_height,json=guageHeight,proto3" json:"guage_height,omitempty"` // max limit GuageMax uint64 `protobuf:"varint,5,opt,name=guage_max,json=guageMax,proto3" json:"guage_max,omitempty"` // relay addr string Relay string `protobuf:"bytes,6,opt,name=relay,proto3" json:"relay,omitempty"` // app origin name string AppOrigin string `protobuf:"bytes,7,opt,name=app_origin,json=appOrigin,proto3" json:"app_origin,omitempty"` // ai model hash string ModelHash string `protobuf:"bytes,8,opt,name=model_hash,json=modelHash,proto3" json:"model_hash,omitempty"` // mac addr Mac string `protobuf:"bytes,9,opt,name=mac,proto3" json:"mac,omitempty"` // memory info MemInfo string `protobuf:"bytes,10,opt,name=memInfo,proto3" json:"memInfo,omitempty"` // cpu info CpuInfo string `protobuf:"bytes,11,opt,name=cpu_info,json=cpuInfo,proto3" json:"cpu_info,omitempty"` // average e power value AveragePower float32 `protobuf:"fixed32,12,opt,name=average_power,json=averagePower,proto3" json:"average_power,omitempty"` // gpu info GpuInfo string `protobuf:"bytes,13,opt,name=gpu_info,json=gpuInfo,proto3" json:"gpu_info,omitempty"` // version Version string `protobuf:"bytes,14,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*AliveStatus) Descriptor
deprecated
func (*AliveStatus) Descriptor() ([]byte, []int)
Deprecated: Use AliveStatus.ProtoReflect.Descriptor instead.
func (*AliveStatus) GetAppOrigin ¶
func (x *AliveStatus) GetAppOrigin() string
func (*AliveStatus) GetAveragePower ¶
func (x *AliveStatus) GetAveragePower() float32
func (*AliveStatus) GetCpuInfo ¶
func (x *AliveStatus) GetCpuInfo() string
func (*AliveStatus) GetGpuInfo ¶
func (x *AliveStatus) GetGpuInfo() string
func (*AliveStatus) GetGuageHeight ¶
func (x *AliveStatus) GetGuageHeight() uint64
func (*AliveStatus) GetGuageMax ¶
func (x *AliveStatus) GetGuageMax() uint64
func (*AliveStatus) GetMac ¶
func (x *AliveStatus) GetMac() string
func (*AliveStatus) GetMemInfo ¶
func (x *AliveStatus) GetMemInfo() string
func (*AliveStatus) GetModelHash ¶
func (x *AliveStatus) GetModelHash() string
func (*AliveStatus) GetName ¶
func (x *AliveStatus) GetName() string
func (*AliveStatus) GetRelay ¶
func (x *AliveStatus) GetRelay() string
func (*AliveStatus) GetStartupTime ¶
func (x *AliveStatus) GetStartupTime() uint64
func (*AliveStatus) GetUptime ¶
func (x *AliveStatus) GetUptime() uint64
func (*AliveStatus) GetVersion ¶
func (x *AliveStatus) GetVersion() string
func (*AliveStatus) ProtoMessage ¶
func (*AliveStatus) ProtoMessage()
func (*AliveStatus) ProtoReflect ¶
func (x *AliveStatus) ProtoReflect() protoreflect.Message
func (*AliveStatus) Reset ¶
func (x *AliveStatus) Reset()
func (*AliveStatus) String ¶
func (x *AliveStatus) String() string
type AliveStatusResp ¶
type AliveStatusResp struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Discovery string `protobuf:"bytes,2,opt,name=discovery,proto3" json:"discovery,omitempty"` // contains filtered or unexported fields }
func (*AliveStatusResp) Descriptor
deprecated
func (*AliveStatusResp) Descriptor() ([]byte, []int)
Deprecated: Use AliveStatusResp.ProtoReflect.Descriptor instead.
func (*AliveStatusResp) GetDiscovery ¶
func (x *AliveStatusResp) GetDiscovery() string
func (*AliveStatusResp) GetSuccess ¶
func (x *AliveStatusResp) GetSuccess() bool
func (*AliveStatusResp) ProtoMessage ¶
func (*AliveStatusResp) ProtoMessage()
func (*AliveStatusResp) ProtoReflect ¶
func (x *AliveStatusResp) ProtoReflect() protoreflect.Message
func (*AliveStatusResp) Reset ¶
func (x *AliveStatusResp) Reset()
func (*AliveStatusResp) String ¶
func (x *AliveStatusResp) String() string
type UnimplementedAliveServer ¶
type UnimplementedAliveServer struct { }
UnimplementedAliveServer must be embedded to have forward compatible implementations.
func (UnimplementedAliveServer) Hello ¶
func (UnimplementedAliveServer) Hello(context.Context, *AliveStatus) (*AliveStatusResp, error)
type UnsafeAliveServer ¶
type UnsafeAliveServer interface {
// contains filtered or unexported methods
}
UnsafeAliveServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AliveServer will result in compilation errors.