Versions in this module Expand all Collapse all v1 v1.0.3 Feb 27, 2025 Changes in this version + const SyncApp_GetData_FullMethodName + const SyncApp_GetStatus_FullMethodName + const SyncApp_PostAppStatus_FullMethodName + var File_core_application_proto_syncer_proto protoreflect.FileDescriptor + var SyncApp_ServiceDesc = grpc.ServiceDesc + func RegisterSyncAppServer(s grpc.ServiceRegistrar, srv SyncAppServer) + type AppStatus struct + Addr string + AppOrigin string + AveragePower float32 + CpuInfo string + GpuInfo string + GuageHeight uint64 + GuageMax uint64 + Mac string + MemInfo string + ModelHash string + Name string + NodeId string + Relay string + RelayProxyPort uint64 + StartupTime uint64 + Uptime uint64 + Version string + func (*AppStatus) Descriptor() ([]byte, []int) + func (*AppStatus) ProtoMessage() + func (x *AppStatus) GetAddr() string + func (x *AppStatus) GetAppOrigin() string + func (x *AppStatus) GetAveragePower() float32 + func (x *AppStatus) GetCpuInfo() string + func (x *AppStatus) GetGpuInfo() string + func (x *AppStatus) GetGuageHeight() uint64 + func (x *AppStatus) GetGuageMax() uint64 + func (x *AppStatus) GetMac() string + func (x *AppStatus) GetMemInfo() string + func (x *AppStatus) GetModelHash() string + func (x *AppStatus) GetName() string + func (x *AppStatus) GetNodeId() string + func (x *AppStatus) GetRelay() string + func (x *AppStatus) GetRelayProxyPort() uint64 + func (x *AppStatus) GetStartupTime() uint64 + func (x *AppStatus) GetUptime() uint64 + func (x *AppStatus) GetVersion() string + func (x *AppStatus) ProtoReflect() protoreflect.Message + func (x *AppStatus) Reset() + func (x *AppStatus) String() string + type Data struct + Data map[string][]byte + func (*Data) Descriptor() ([]byte, []int) + func (*Data) ProtoMessage() + func (x *Data) GetData() map[string][]byte + func (x *Data) ProtoReflect() protoreflect.Message + func (x *Data) Reset() + func (x *Data) String() string + type GetDataRequest struct + DataHash string + func (*GetDataRequest) Descriptor() ([]byte, []int) + func (*GetDataRequest) ProtoMessage() + func (x *GetDataRequest) GetDataHash() string + func (x *GetDataRequest) ProtoReflect() protoreflect.Message + func (x *GetDataRequest) Reset() + func (x *GetDataRequest) String() string + type PostPeerStatusRequest struct + NodeId string + func (*PostPeerStatusRequest) Descriptor() ([]byte, []int) + func (*PostPeerStatusRequest) ProtoMessage() + func (x *PostPeerStatusRequest) GetNodeId() string + func (x *PostPeerStatusRequest) ProtoReflect() protoreflect.Message + func (x *PostPeerStatusRequest) Reset() + func (x *PostPeerStatusRequest) String() string + type Result struct + Data string + func (*Result) Descriptor() ([]byte, []int) + func (*Result) ProtoMessage() + func (x *Result) GetData() string + func (x *Result) ProtoReflect() protoreflect.Message + func (x *Result) Reset() + func (x *Result) String() string + type SyncAppClient interface + GetData func(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (SyncApp_GetDataClient, error) + GetStatus func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AppStatus, error) + PostAppStatus func(ctx context.Context, in *PostPeerStatusRequest, opts ...grpc.CallOption) (SyncApp_PostAppStatusClient, error) + func NewSyncAppClient(cc grpc.ClientConnInterface) SyncAppClient + type SyncAppServer interface + GetData func(*GetDataRequest, SyncApp_GetDataServer) error + GetStatus func(context.Context, *emptypb.Empty) (*AppStatus, error) + PostAppStatus func(*PostPeerStatusRequest, SyncApp_PostAppStatusServer) error + type SyncApp_GetDataClient interface + Recv func() (*Data, error) + type SyncApp_GetDataServer interface + Send func(*Data) error + type SyncApp_PostAppStatusClient interface + Recv func() (*Result, error) + type SyncApp_PostAppStatusServer interface + Send func(*Result) error + type UnimplementedSyncAppServer struct + func (UnimplementedSyncAppServer) GetData(*GetDataRequest, SyncApp_GetDataServer) error + func (UnimplementedSyncAppServer) GetStatus(context.Context, *emptypb.Empty) (*AppStatus, error) + func (UnimplementedSyncAppServer) PostAppStatus(*PostPeerStatusRequest, SyncApp_PostAppStatusServer) error + type UnsafeSyncAppServer interface