Documentation ¶
Index ¶
- Variables
- func RegisterPublicAPIServer(s *grpc.Server, srv PublicAPIServer)
- type App
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetAutoDim() bool
- func (x *Device) GetBrightness() int32
- func (x *Device) GetDisplayName() string
- func (x *Device) GetId() string
- func (x *Device) GetLastSeen() int64
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type GetDeviceRequest
- type GetPreviewRequest
- func (*GetPreviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPreviewRequest) GetDeviceID() string
- func (x *GetPreviewRequest) GetInstallationID() string
- func (*GetPreviewRequest) ProtoMessage()
- func (x *GetPreviewRequest) ProtoReflect() protoreflect.Message
- func (x *GetPreviewRequest) Reset()
- func (x *GetPreviewRequest) String() string
- type Image
- type Installation
- func (*Installation) Descriptor() ([]byte, []int)deprecated
- func (x *Installation) GetAppID() string
- func (x *Installation) GetId() string
- func (*Installation) ProtoMessage()
- func (x *Installation) ProtoReflect() protoreflect.Message
- func (x *Installation) Reset()
- func (x *Installation) String() string
- type ListInstallationsRequest
- func (*ListInstallationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInstallationsRequest) GetDeviceID() string
- func (*ListInstallationsRequest) ProtoMessage()
- func (x *ListInstallationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListInstallationsRequest) Reset()
- func (x *ListInstallationsRequest) String() string
- type ListOfApps
- type ListOfInstallations
- func (*ListOfInstallations) Descriptor() ([]byte, []int)deprecated
- func (x *ListOfInstallations) GetInstallations() []*Installation
- func (*ListOfInstallations) ProtoMessage()
- func (x *ListOfInstallations) ProtoReflect() protoreflect.Message
- func (x *ListOfInstallations) Reset()
- func (x *ListOfInstallations) String() string
- type PublicAPIClient
- type PublicAPIServer
- type PushRequest
- func (*PushRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushRequest) GetDeviceID() string
- func (x *PushRequest) GetImage() []byte
- func (*PushRequest) ProtoMessage()
- func (x *PushRequest) ProtoReflect() protoreflect.Message
- func (x *PushRequest) Reset()
- func (x *PushRequest) String() string
- type UnimplementedPublicAPIServer
- func (*UnimplementedPublicAPIServer) GetDevice(context.Context, *GetDeviceRequest) (*Device, error)
- func (*UnimplementedPublicAPIServer) GetPreview(context.Context, *GetPreviewRequest) (*httpbody.HttpBody, error)
- func (*UnimplementedPublicAPIServer) ListApps(context.Context, *empty.Empty) (*ListOfApps, error)
- func (*UnimplementedPublicAPIServer) ListInstallations(context.Context, *ListInstallationsRequest) (*ListOfInstallations, error)
- func (*UnimplementedPublicAPIServer) Push(context.Context, *PushRequest) (*empty.Empty, error)
- func (*UnimplementedPublicAPIServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error)
- type UpdateDeviceRequest
- func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceRequest) GetDevice() *Device
- func (x *UpdateDeviceRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateDeviceRequest) ProtoMessage()
- func (x *UpdateDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceRequest) Reset()
- func (x *UpdateDeviceRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_public_api_proto_public_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPublicAPIServer ¶
func RegisterPublicAPIServer(s *grpc.Server, srv PublicAPIServer)
Types ¶
type App ¶
type App struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*App) Descriptor
deprecated
func (*App) GetDescription ¶
func (*App) ProtoMessage ¶
func (*App) ProtoMessage()
func (*App) ProtoReflect ¶
func (x *App) ProtoReflect() protoreflect.Message
type Device ¶
type Device struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` Brightness int32 `protobuf:"varint,3,opt,name=brightness,proto3" json:"brightness,omitempty"` LastSeen int64 `protobuf:"varint,4,opt,name=lastSeen,proto3" json:"lastSeen,omitempty"` AutoDim bool `protobuf:"varint,5,opt,name=autoDim,proto3" json:"autoDim,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetAutoDim ¶
func (*Device) GetBrightness ¶
func (*Device) GetDisplayName ¶
func (*Device) GetLastSeen ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type GetDeviceRequest ¶
type GetDeviceRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceRequest) Descriptor
deprecated
func (*GetDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceRequest) GetDeviceID ¶
func (x *GetDeviceRequest) GetDeviceID() string
func (*GetDeviceRequest) ProtoMessage ¶
func (*GetDeviceRequest) ProtoMessage()
func (*GetDeviceRequest) ProtoReflect ¶
func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceRequest) Reset ¶
func (x *GetDeviceRequest) Reset()
func (*GetDeviceRequest) String ¶
func (x *GetDeviceRequest) String() string
type GetPreviewRequest ¶
type GetPreviewRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` InstallationID string `protobuf:"bytes,2,opt,name=installationID,proto3" json:"installationID,omitempty"` // contains filtered or unexported fields }
func (*GetPreviewRequest) Descriptor
deprecated
func (*GetPreviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPreviewRequest.ProtoReflect.Descriptor instead.
func (*GetPreviewRequest) GetDeviceID ¶
func (x *GetPreviewRequest) GetDeviceID() string
func (*GetPreviewRequest) GetInstallationID ¶
func (x *GetPreviewRequest) GetInstallationID() string
func (*GetPreviewRequest) ProtoMessage ¶
func (*GetPreviewRequest) ProtoMessage()
func (*GetPreviewRequest) ProtoReflect ¶
func (x *GetPreviewRequest) ProtoReflect() protoreflect.Message
func (*GetPreviewRequest) Reset ¶
func (x *GetPreviewRequest) Reset()
func (*GetPreviewRequest) String ¶
func (x *GetPreviewRequest) String() string
type Image ¶
type Image struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type Installation ¶
type Installation struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AppID string `protobuf:"bytes,2,opt,name=appID,proto3" json:"appID,omitempty"` // contains filtered or unexported fields }
func (*Installation) Descriptor
deprecated
func (*Installation) Descriptor() ([]byte, []int)
Deprecated: Use Installation.ProtoReflect.Descriptor instead.
func (*Installation) GetAppID ¶
func (x *Installation) GetAppID() string
func (*Installation) GetId ¶
func (x *Installation) GetId() string
func (*Installation) ProtoMessage ¶
func (*Installation) ProtoMessage()
func (*Installation) ProtoReflect ¶
func (x *Installation) ProtoReflect() protoreflect.Message
func (*Installation) Reset ¶
func (x *Installation) Reset()
func (*Installation) String ¶
func (x *Installation) String() string
type ListInstallationsRequest ¶
type ListInstallationsRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` // contains filtered or unexported fields }
func (*ListInstallationsRequest) Descriptor
deprecated
func (*ListInstallationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInstallationsRequest.ProtoReflect.Descriptor instead.
func (*ListInstallationsRequest) GetDeviceID ¶
func (x *ListInstallationsRequest) GetDeviceID() string
func (*ListInstallationsRequest) ProtoMessage ¶
func (*ListInstallationsRequest) ProtoMessage()
func (*ListInstallationsRequest) ProtoReflect ¶
func (x *ListInstallationsRequest) ProtoReflect() protoreflect.Message
func (*ListInstallationsRequest) Reset ¶
func (x *ListInstallationsRequest) Reset()
func (*ListInstallationsRequest) String ¶
func (x *ListInstallationsRequest) String() string
type ListOfApps ¶
type ListOfApps struct { Apps []*App `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty"` // contains filtered or unexported fields }
func (*ListOfApps) Descriptor
deprecated
func (*ListOfApps) Descriptor() ([]byte, []int)
Deprecated: Use ListOfApps.ProtoReflect.Descriptor instead.
func (*ListOfApps) GetApps ¶
func (x *ListOfApps) GetApps() []*App
func (*ListOfApps) ProtoMessage ¶
func (*ListOfApps) ProtoMessage()
func (*ListOfApps) ProtoReflect ¶
func (x *ListOfApps) ProtoReflect() protoreflect.Message
func (*ListOfApps) Reset ¶
func (x *ListOfApps) Reset()
func (*ListOfApps) String ¶
func (x *ListOfApps) String() string
type ListOfInstallations ¶
type ListOfInstallations struct { Installations []*Installation `protobuf:"bytes,1,rep,name=installations,proto3" json:"installations,omitempty"` // contains filtered or unexported fields }
func (*ListOfInstallations) Descriptor
deprecated
func (*ListOfInstallations) Descriptor() ([]byte, []int)
Deprecated: Use ListOfInstallations.ProtoReflect.Descriptor instead.
func (*ListOfInstallations) GetInstallations ¶
func (x *ListOfInstallations) GetInstallations() []*Installation
func (*ListOfInstallations) ProtoMessage ¶
func (*ListOfInstallations) ProtoMessage()
func (*ListOfInstallations) ProtoReflect ¶
func (x *ListOfInstallations) ProtoReflect() protoreflect.Message
func (*ListOfInstallations) Reset ¶
func (x *ListOfInstallations) Reset()
func (*ListOfInstallations) String ¶
func (x *ListOfInstallations) String() string
type PublicAPIClient ¶
type PublicAPIClient interface { GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*Device, error) UpdateDevice(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*Device, error) ListApps(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListOfApps, error) ListInstallations(ctx context.Context, in *ListInstallationsRequest, opts ...grpc.CallOption) (*ListOfInstallations, error) GetPreview(ctx context.Context, in *GetPreviewRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
PublicAPIClient is the client API for PublicAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPublicAPIClient ¶
func NewPublicAPIClient(cc grpc.ClientConnInterface) PublicAPIClient
type PublicAPIServer ¶
type PublicAPIServer interface { GetDevice(context.Context, *GetDeviceRequest) (*Device, error) UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error) ListApps(context.Context, *empty.Empty) (*ListOfApps, error) ListInstallations(context.Context, *ListInstallationsRequest) (*ListOfInstallations, error) GetPreview(context.Context, *GetPreviewRequest) (*httpbody.HttpBody, error) Push(context.Context, *PushRequest) (*empty.Empty, error) }
PublicAPIServer is the server API for PublicAPI service.
type PushRequest ¶
type PushRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*PushRequest) Descriptor
deprecated
func (*PushRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushRequest.ProtoReflect.Descriptor instead.
func (*PushRequest) GetDeviceID ¶
func (x *PushRequest) GetDeviceID() string
func (*PushRequest) GetImage ¶
func (x *PushRequest) GetImage() []byte
func (*PushRequest) ProtoMessage ¶
func (*PushRequest) ProtoMessage()
func (*PushRequest) ProtoReflect ¶
func (x *PushRequest) ProtoReflect() protoreflect.Message
func (*PushRequest) Reset ¶
func (x *PushRequest) Reset()
func (*PushRequest) String ¶
func (x *PushRequest) String() string
type UnimplementedPublicAPIServer ¶
type UnimplementedPublicAPIServer struct { }
UnimplementedPublicAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedPublicAPIServer) GetDevice ¶
func (*UnimplementedPublicAPIServer) GetDevice(context.Context, *GetDeviceRequest) (*Device, error)
func (*UnimplementedPublicAPIServer) GetPreview ¶
func (*UnimplementedPublicAPIServer) GetPreview(context.Context, *GetPreviewRequest) (*httpbody.HttpBody, error)
func (*UnimplementedPublicAPIServer) ListApps ¶
func (*UnimplementedPublicAPIServer) ListApps(context.Context, *empty.Empty) (*ListOfApps, error)
func (*UnimplementedPublicAPIServer) ListInstallations ¶
func (*UnimplementedPublicAPIServer) ListInstallations(context.Context, *ListInstallationsRequest) (*ListOfInstallations, error)
func (*UnimplementedPublicAPIServer) Push ¶
func (*UnimplementedPublicAPIServer) Push(context.Context, *PushRequest) (*empty.Empty, error)
func (*UnimplementedPublicAPIServer) UpdateDevice ¶
func (*UnimplementedPublicAPIServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error)
type UpdateDeviceRequest ¶
type UpdateDeviceRequest struct { Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateDeviceRequest) Descriptor
deprecated
func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRequest) GetDevice ¶
func (x *UpdateDeviceRequest) GetDevice() *Device
func (*UpdateDeviceRequest) GetUpdateMask ¶
func (x *UpdateDeviceRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateDeviceRequest) ProtoMessage ¶
func (*UpdateDeviceRequest) ProtoMessage()
func (*UpdateDeviceRequest) ProtoReflect ¶
func (x *UpdateDeviceRequest) ProtoReflect() protoreflect.Message
func (*UpdateDeviceRequest) Reset ¶
func (x *UpdateDeviceRequest) Reset()
func (*UpdateDeviceRequest) String ¶
func (x *UpdateDeviceRequest) String() string