Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDaemonServiceServer(s grpc.ServiceRegistrar, srv DaemonServiceServer)
- type DaemonServiceClient
- type DaemonServiceServer
- type HeartBeatRequest
- func (*HeartBeatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HeartBeatRequest) GetDaemonHost() string
- func (x *HeartBeatRequest) GetDaemonName() string
- func (x *HeartBeatRequest) GetDaemonOwner() string
- func (x *HeartBeatRequest) GetDaemonPort() uint32
- func (x *HeartBeatRequest) GetDaemonVersion() string
- func (x *HeartBeatRequest) GetUuid() string
- func (*HeartBeatRequest) ProtoMessage()
- func (x *HeartBeatRequest) ProtoReflect() protoreflect.Message
- func (x *HeartBeatRequest) Reset()
- func (x *HeartBeatRequest) String() string
- type HeartBeatResponse
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetDaemonHost() string
- func (x *RegisterRequest) GetDaemonName() string
- func (x *RegisterRequest) GetDaemonOwner() string
- func (x *RegisterRequest) GetDaemonPort() uint32
- func (x *RegisterRequest) GetDaemonVersion() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetExpIn() uint32
- func (x *RegisterResponse) GetUuid() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type UnimplementedDaemonServiceServer
- type UnsafeDaemonServiceServer
Constants ¶
const ( DaemonService_Register_FullMethodName = "/daemon.v1.DaemonService/Register" DaemonService_HeartBeat_FullMethodName = "/daemon.v1.DaemonService/HeartBeat" )
Variables ¶
var DaemonService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "daemon.v1.DaemonService", HandlerType: (*DaemonServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _DaemonService_Register_Handler, }, { MethodName: "HeartBeat", Handler: _DaemonService_HeartBeat_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "daemon/v1/daemon.proto", }
DaemonService_ServiceDesc is the grpc.ServiceDesc for DaemonService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_daemon_v1_daemon_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDaemonServiceServer ¶
func RegisterDaemonServiceServer(s grpc.ServiceRegistrar, srv DaemonServiceServer)
Types ¶
type DaemonServiceClient ¶
type DaemonServiceClient interface { // Register registers a new daemon Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) // HeartBeat notifies the web app that a daemon is alive HeartBeat(ctx context.Context, in *HeartBeatRequest, opts ...grpc.CallOption) (*HeartBeatResponse, error) }
DaemonServiceClient is the client API for DaemonService 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 NewDaemonServiceClient ¶
func NewDaemonServiceClient(cc grpc.ClientConnInterface) DaemonServiceClient
type DaemonServiceServer ¶
type DaemonServiceServer interface { // Register registers a new daemon Register(context.Context, *RegisterRequest) (*RegisterResponse, error) // HeartBeat notifies the web app that a daemon is alive HeartBeat(context.Context, *HeartBeatRequest) (*HeartBeatResponse, error) }
DaemonServiceServer is the server API for DaemonService service. All implementations should embed UnimplementedDaemonServiceServer for forward compatibility
type HeartBeatRequest ¶
type HeartBeatRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // The id used to identify the daemon DaemonVersion string `protobuf:"bytes,2,opt,name=daemon_version,json=daemonVersion,proto3" json:"daemon_version,omitempty"` // The version of the daemon DaemonHost string `protobuf:"bytes,3,opt,name=daemon_host,json=daemonHost,proto3" json:"daemon_host,omitempty"` // The host (IP, hostname) to use to contact the daemon DaemonPort uint32 `protobuf:"varint,4,opt,name=daemon_port,json=daemonPort,proto3" json:"daemon_port,omitempty"` // The port to use to contact the daemon DaemonName string `protobuf:"bytes,5,opt,name=daemon_name,json=daemonName,proto3" json:"daemon_name,omitempty"` // The name of the daemon DaemonOwner string `protobuf:"bytes,6,opt,name=daemon_owner,json=daemonOwner,proto3" json:"daemon_owner,omitempty"` // the email of the owner // contains filtered or unexported fields }
func (*HeartBeatRequest) Descriptor
deprecated
func (*HeartBeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeatRequest.ProtoReflect.Descriptor instead.
func (*HeartBeatRequest) GetDaemonHost ¶ added in v0.8.0
func (x *HeartBeatRequest) GetDaemonHost() string
func (*HeartBeatRequest) GetDaemonName ¶ added in v0.8.0
func (x *HeartBeatRequest) GetDaemonName() string
func (*HeartBeatRequest) GetDaemonOwner ¶ added in v0.8.0
func (x *HeartBeatRequest) GetDaemonOwner() string
func (*HeartBeatRequest) GetDaemonPort ¶ added in v0.8.0
func (x *HeartBeatRequest) GetDaemonPort() uint32
func (*HeartBeatRequest) GetDaemonVersion ¶ added in v0.8.0
func (x *HeartBeatRequest) GetDaemonVersion() string
func (*HeartBeatRequest) GetUuid ¶
func (x *HeartBeatRequest) GetUuid() string
func (*HeartBeatRequest) ProtoMessage ¶
func (*HeartBeatRequest) ProtoMessage()
func (*HeartBeatRequest) ProtoReflect ¶
func (x *HeartBeatRequest) ProtoReflect() protoreflect.Message
func (*HeartBeatRequest) Reset ¶
func (x *HeartBeatRequest) Reset()
func (*HeartBeatRequest) String ¶
func (x *HeartBeatRequest) String() string
type HeartBeatResponse ¶
type HeartBeatResponse struct {
// contains filtered or unexported fields
}
func (*HeartBeatResponse) Descriptor
deprecated
func (*HeartBeatResponse) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeatResponse.ProtoReflect.Descriptor instead.
func (*HeartBeatResponse) ProtoMessage ¶
func (*HeartBeatResponse) ProtoMessage()
func (*HeartBeatResponse) ProtoReflect ¶
func (x *HeartBeatResponse) ProtoReflect() protoreflect.Message
func (*HeartBeatResponse) Reset ¶
func (x *HeartBeatResponse) Reset()
func (*HeartBeatResponse) String ¶
func (x *HeartBeatResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { DaemonVersion string `protobuf:"bytes,1,opt,name=daemon_version,json=daemonVersion,proto3" json:"daemon_version,omitempty"` // The version of the daemon DaemonHost string `protobuf:"bytes,2,opt,name=daemon_host,json=daemonHost,proto3" json:"daemon_host,omitempty"` // The host (IP, hostname) to use to contact the daemon DaemonPort uint32 `protobuf:"varint,3,opt,name=daemon_port,json=daemonPort,proto3" json:"daemon_port,omitempty"` // The port to use to contact the daemon DaemonName string `protobuf:"bytes,4,opt,name=daemon_name,json=daemonName,proto3" json:"daemon_name,omitempty"` // The name of the daemon DaemonOwner string `protobuf:"bytes,5,opt,name=daemon_owner,json=daemonOwner,proto3" json:"daemon_owner,omitempty"` // the email of the owner // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetDaemonHost ¶
func (x *RegisterRequest) GetDaemonHost() string
func (*RegisterRequest) GetDaemonName ¶
func (x *RegisterRequest) GetDaemonName() string
func (*RegisterRequest) GetDaemonOwner ¶ added in v0.5.1
func (x *RegisterRequest) GetDaemonOwner() string
func (*RegisterRequest) GetDaemonPort ¶
func (x *RegisterRequest) GetDaemonPort() uint32
func (*RegisterRequest) GetDaemonVersion ¶
func (x *RegisterRequest) GetDaemonVersion() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // The id used to identify the daemon ExpIn uint32 `protobuf:"varint,2,opt,name=exp_in,json=expIn,proto3" json:"exp_in,omitempty"` // The duration in seconds that the daemon id is valid // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetExpIn ¶
func (x *RegisterResponse) GetExpIn() uint32
func (*RegisterResponse) GetUuid ¶
func (x *RegisterResponse) GetUuid() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type UnimplementedDaemonServiceServer ¶
type UnimplementedDaemonServiceServer struct { }
UnimplementedDaemonServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDaemonServiceServer) HeartBeat ¶
func (UnimplementedDaemonServiceServer) HeartBeat(context.Context, *HeartBeatRequest) (*HeartBeatResponse, error)
func (UnimplementedDaemonServiceServer) Register ¶
func (UnimplementedDaemonServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnsafeDaemonServiceServer ¶
type UnsafeDaemonServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDaemonServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DaemonServiceServer will result in compilation errors.