Versions in this module Expand all Collapse all v0 v0.0.5 Oct 12, 2022 v0.0.4 May 25, 2022 Changes in this version + var File_pkg_playpb_playground_proto protoreflect.FileDescriptor + var PlaygroundApi_ServiceDesc = grpc.ServiceDesc + func RegisterPlaygroundApiServer(s grpc.ServiceRegistrar, srv PlaygroundApiServer) + type AddDeviceTraitRequest struct + Name string + TraitName string + func (*AddDeviceTraitRequest) Descriptor() ([]byte, []int) + func (*AddDeviceTraitRequest) ProtoMessage() + func (x *AddDeviceTraitRequest) GetName() string + func (x *AddDeviceTraitRequest) GetTraitName() string + func (x *AddDeviceTraitRequest) ProtoReflect() protoreflect.Message + func (x *AddDeviceTraitRequest) Reset() + func (x *AddDeviceTraitRequest) String() string + type AddDeviceTraitResponse struct + func (*AddDeviceTraitResponse) Descriptor() ([]byte, []int) + func (*AddDeviceTraitResponse) ProtoMessage() + func (x *AddDeviceTraitResponse) ProtoReflect() protoreflect.Message + func (x *AddDeviceTraitResponse) Reset() + func (x *AddDeviceTraitResponse) String() string + type AddRemoteDeviceRequest struct + Endpoint string + Insecure bool + Name string + Tls *RemoteTLS + TraitName []string + func (*AddRemoteDeviceRequest) Descriptor() ([]byte, []int) + func (*AddRemoteDeviceRequest) ProtoMessage() + func (x *AddRemoteDeviceRequest) GetEndpoint() string + func (x *AddRemoteDeviceRequest) GetInsecure() bool + func (x *AddRemoteDeviceRequest) GetName() string + func (x *AddRemoteDeviceRequest) GetTls() *RemoteTLS + func (x *AddRemoteDeviceRequest) GetTraitName() []string + func (x *AddRemoteDeviceRequest) ProtoReflect() protoreflect.Message + func (x *AddRemoteDeviceRequest) Reset() + func (x *AddRemoteDeviceRequest) String() string + type AddRemoteDeviceResponse struct + func (*AddRemoteDeviceResponse) Descriptor() ([]byte, []int) + func (*AddRemoteDeviceResponse) ProtoMessage() + func (x *AddRemoteDeviceResponse) ProtoReflect() protoreflect.Message + func (x *AddRemoteDeviceResponse) Reset() + func (x *AddRemoteDeviceResponse) String() string + type ListSupportedTraitsRequest struct + func (*ListSupportedTraitsRequest) Descriptor() ([]byte, []int) + func (*ListSupportedTraitsRequest) ProtoMessage() + func (x *ListSupportedTraitsRequest) ProtoReflect() protoreflect.Message + func (x *ListSupportedTraitsRequest) Reset() + func (x *ListSupportedTraitsRequest) String() string + type ListSupportedTraitsResponse struct + TraitName []string + func (*ListSupportedTraitsResponse) Descriptor() ([]byte, []int) + func (*ListSupportedTraitsResponse) ProtoMessage() + func (x *ListSupportedTraitsResponse) GetTraitName() []string + func (x *ListSupportedTraitsResponse) ProtoReflect() protoreflect.Message + func (x *ListSupportedTraitsResponse) Reset() + func (x *ListSupportedTraitsResponse) String() string + type Performance struct + Capture *durationpb.Duration + Frame *durationpb.Duration + Idle *durationpb.Duration + Respond *durationpb.Duration + Scrub *durationpb.Duration + func (*Performance) Descriptor() ([]byte, []int) + func (*Performance) ProtoMessage() + func (x *Performance) GetCapture() *durationpb.Duration + func (x *Performance) GetFrame() *durationpb.Duration + func (x *Performance) GetIdle() *durationpb.Duration + func (x *Performance) GetRespond() *durationpb.Duration + func (x *Performance) GetScrub() *durationpb.Duration + func (x *Performance) ProtoReflect() protoreflect.Message + func (x *Performance) Reset() + func (x *Performance) String() string + type PlaygroundApiClient interface + AddDeviceTrait func(ctx context.Context, in *AddDeviceTraitRequest, opts ...grpc.CallOption) (*AddDeviceTraitResponse, error) + AddRemoteDevice func(ctx context.Context, in *AddRemoteDeviceRequest, opts ...grpc.CallOption) (*AddRemoteDeviceResponse, error) + ListSupportedTraits func(ctx context.Context, in *ListSupportedTraitsRequest, opts ...grpc.CallOption) (*ListSupportedTraitsResponse, error) + PullPerformance func(ctx context.Context, in *PullPerformanceRequest, opts ...grpc.CallOption) (PlaygroundApi_PullPerformanceClient, error) + func NewPlaygroundApiClient(cc grpc.ClientConnInterface) PlaygroundApiClient + type PlaygroundApiServer interface + AddDeviceTrait func(context.Context, *AddDeviceTraitRequest) (*AddDeviceTraitResponse, error) + AddRemoteDevice func(context.Context, *AddRemoteDeviceRequest) (*AddRemoteDeviceResponse, error) + ListSupportedTraits func(context.Context, *ListSupportedTraitsRequest) (*ListSupportedTraitsResponse, error) + PullPerformance func(*PullPerformanceRequest, PlaygroundApi_PullPerformanceServer) error + type PlaygroundApi_PullPerformanceClient interface + Recv func() (*PullPerformanceResponse, error) + type PlaygroundApi_PullPerformanceServer interface + Send func(*PullPerformanceResponse) error + type PullPerformanceRequest struct + func (*PullPerformanceRequest) Descriptor() ([]byte, []int) + func (*PullPerformanceRequest) ProtoMessage() + func (x *PullPerformanceRequest) ProtoReflect() protoreflect.Message + func (x *PullPerformanceRequest) Reset() + func (x *PullPerformanceRequest) String() string + type PullPerformanceResponse struct + ChangeTime *timestamppb.Timestamp + Performance *Performance + func (*PullPerformanceResponse) Descriptor() ([]byte, []int) + func (*PullPerformanceResponse) ProtoMessage() + func (x *PullPerformanceResponse) GetChangeTime() *timestamppb.Timestamp + func (x *PullPerformanceResponse) GetPerformance() *Performance + func (x *PullPerformanceResponse) ProtoReflect() protoreflect.Message + func (x *PullPerformanceResponse) Reset() + func (x *PullPerformanceResponse) String() string + type RemoteTLS struct + ServerCaCert string + func (*RemoteTLS) Descriptor() ([]byte, []int) + func (*RemoteTLS) ProtoMessage() + func (x *RemoteTLS) GetServerCaCert() string + func (x *RemoteTLS) ProtoReflect() protoreflect.Message + func (x *RemoteTLS) Reset() + func (x *RemoteTLS) String() string + type Server struct + func New(node *node.Node) *Server + func (s *Server) AddDeviceTrait(_ context.Context, request *AddDeviceTraitRequest) (*AddDeviceTraitResponse, error) + func (s *Server) AddRemoteDevice(ctx context.Context, req *AddRemoteDeviceRequest) (*AddRemoteDeviceResponse, error) + func (s *Server) Frame(f stats.FrameTiming) + func (s *Server) ListSupportedTraits(context.Context, *ListSupportedTraitsRequest) (*ListSupportedTraitsResponse, error) + func (s *Server) PullPerformance(_ *PullPerformanceRequest, stream PlaygroundApi_PullPerformanceServer) error + func (s *Server) Register(server *grpc.Server) + type UnimplementedPlaygroundApiServer struct + func (UnimplementedPlaygroundApiServer) AddDeviceTrait(context.Context, *AddDeviceTraitRequest) (*AddDeviceTraitResponse, error) + func (UnimplementedPlaygroundApiServer) AddRemoteDevice(context.Context, *AddRemoteDeviceRequest) (*AddRemoteDeviceResponse, error) + func (UnimplementedPlaygroundApiServer) ListSupportedTraits(context.Context, *ListSupportedTraitsRequest) (*ListSupportedTraitsResponse, error) + func (UnimplementedPlaygroundApiServer) PullPerformance(*PullPerformanceRequest, PlaygroundApi_PullPerformanceServer) error + type UnsafePlaygroundApiServer interface