tidbyt_api

package
v0.0.0-...-b132378 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetDescription

func (x *App) GetDescription() string

func (*App) GetId

func (x *App) GetId() string

func (*App) GetName

func (x *App) GetName() string

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

func (x *App) ProtoReflect() protoreflect.Message

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetAutoDim

func (x *Device) GetAutoDim() bool

func (*Device) GetBrightness

func (x *Device) GetBrightness() int32

func (*Device) GetDisplayName

func (x *Device) GetDisplayName() string

func (*Device) GetId

func (x *Device) GetId() string

func (*Device) GetLastSeen

func (x *Device) GetLastSeen() int64

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetImage

func (x *Image) GetImage() []byte

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

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

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) GetPreview

func (*UnimplementedPublicAPIServer) ListApps

func (*UnimplementedPublicAPIServer) ListInstallations

func (*UnimplementedPublicAPIServer) Push

func (*UnimplementedPublicAPIServer) UpdateDevice

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL