Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_camera_camera_proto protoreflect.FileDescriptor + func NewCameraServiceEndpoints() []*api.Endpoint + func RegisterCameraServiceHandler(s server.Server, hdlr CameraServiceHandler, opts ...server.HandlerOption) error + type Camera struct + Channel uint32 + Connected bool + Description string + Id uint32 + Ip string + Name string + Port uint32 + func (*Camera) Descriptor() ([]byte, []int) + func (*Camera) ProtoMessage() + func (x *Camera) GetChannel() uint32 + func (x *Camera) GetConnected() bool + func (x *Camera) GetDescription() string + func (x *Camera) GetId() uint32 + func (x *Camera) GetIp() string + func (x *Camera) GetName() string + func (x *Camera) GetPort() uint32 + func (x *Camera) ProtoReflect() protoreflect.Message + func (x *Camera) Reset() + func (x *Camera) String() string + type CameraFilter struct + And []*CameraFilter + ChannelIn []uint32 + IdIn []uint32 + IpIn []string + Name *wrappers.StringValue + NameIn []string + Or []*CameraFilter + PortIn []uint32 + func (*CameraFilter) Descriptor() ([]byte, []int) + func (*CameraFilter) ProtoMessage() + func (x *CameraFilter) GetAnd() []*CameraFilter + func (x *CameraFilter) GetChannelIn() []uint32 + func (x *CameraFilter) GetIdIn() []uint32 + func (x *CameraFilter) GetIpIn() []string + func (x *CameraFilter) GetName() *wrappers.StringValue + func (x *CameraFilter) GetNameIn() []string + func (x *CameraFilter) GetOr() []*CameraFilter + func (x *CameraFilter) GetPortIn() []uint32 + func (x *CameraFilter) ProtoReflect() protoreflect.Message + func (x *CameraFilter) Reset() + func (x *CameraFilter) String() string + type CameraReq struct + Channel uint32 + Description string + Id uint32 + Ip string + Name string + Password string + Port uint32 + Username string + func (*CameraReq) Descriptor() ([]byte, []int) + func (*CameraReq) ProtoMessage() + func (x *CameraReq) GetChannel() uint32 + func (x *CameraReq) GetDescription() string + func (x *CameraReq) GetId() uint32 + func (x *CameraReq) GetIp() string + func (x *CameraReq) GetName() string + func (x *CameraReq) GetPassword() string + func (x *CameraReq) GetPort() uint32 + func (x *CameraReq) GetUsername() string + func (x *CameraReq) ProtoReflect() protoreflect.Message + func (x *CameraReq) Reset() + func (x *CameraReq) String() string + type CameraService interface + AddCamera func(ctx context.Context, in *CameraReq, opts ...client.CallOption) (*Response, error) + ConfigCamera func(ctx context.Context, in *ConfigCameraReq, opts ...client.CallOption) (*Response, error) + DeleteCamera func(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error) + GetCamera func(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Camera, error) + GetCameras func(ctx context.Context, in *Query, opts ...client.CallOption) (*Cameras, error) + SnapPicture func(ctx context.Context, in *SnapPictureReq, opts ...client.CallOption) (*Response, error) + func NewCameraService(name string, c client.Client) CameraService + type CameraServiceHandler interface + AddCamera func(context.Context, *CameraReq, *Response) error + ConfigCamera func(context.Context, *ConfigCameraReq, *Response) error + DeleteCamera func(context.Context, *IDReq, *Response) error + GetCamera func(context.Context, *IDReq, *Camera) error + GetCameras func(context.Context, *Query, *Cameras) error + SnapPicture func(context.Context, *SnapPictureReq, *Response) error + type Cameras struct + Cameras []*Camera + Totalpages uint32 + Totals uint32 + func (*Cameras) Descriptor() ([]byte, []int) + func (*Cameras) ProtoMessage() + func (x *Cameras) GetCameras() []*Camera + func (x *Cameras) GetTotalpages() uint32 + func (x *Cameras) GetTotals() uint32 + func (x *Cameras) ProtoReflect() protoreflect.Message + func (x *Cameras) Reset() + func (x *Cameras) String() string + type ConfigCameraReq struct + Channel *wrappers.UInt32Value + Description *wrappers.StringValue + Id uint32 + Ip *wrappers.StringValue + Name *wrappers.StringValue + Port *wrappers.UInt32Value + func (*ConfigCameraReq) Descriptor() ([]byte, []int) + func (*ConfigCameraReq) ProtoMessage() + func (x *ConfigCameraReq) GetChannel() *wrappers.UInt32Value + func (x *ConfigCameraReq) GetDescription() *wrappers.StringValue + func (x *ConfigCameraReq) GetId() uint32 + func (x *ConfigCameraReq) GetIp() *wrappers.StringValue + func (x *ConfigCameraReq) GetName() *wrappers.StringValue + func (x *ConfigCameraReq) GetPort() *wrappers.UInt32Value + func (x *ConfigCameraReq) ProtoReflect() protoreflect.Message + func (x *ConfigCameraReq) Reset() + func (x *ConfigCameraReq) String() string + type IDReq struct + Id uint32 + func (*IDReq) Descriptor() ([]byte, []int) + func (*IDReq) ProtoMessage() + func (x *IDReq) GetId() uint32 + func (x *IDReq) ProtoReflect() protoreflect.Message + func (x *IDReq) Reset() + func (x *IDReq) String() string + type Query struct + Filter *CameraFilter + Limit uint32 + Offset uint32 + Page uint32 + PerPage uint32 + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (x *Query) GetFilter() *CameraFilter + func (x *Query) GetLimit() uint32 + func (x *Query) GetOffset() uint32 + func (x *Query) GetPage() uint32 + func (x *Query) GetPerPage() uint32 + func (x *Query) ProtoReflect() protoreflect.Message + func (x *Query) Reset() + func (x *Query) String() string + type Response struct + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type SnapPictureReq struct + Channel *wrappers.UInt32Value + Id uint32 + TagName *wrappers.StringValue + func (*SnapPictureReq) Descriptor() ([]byte, []int) + func (*SnapPictureReq) ProtoMessage() + func (x *SnapPictureReq) GetChannel() *wrappers.UInt32Value + func (x *SnapPictureReq) GetId() uint32 + func (x *SnapPictureReq) GetTagName() *wrappers.StringValue + func (x *SnapPictureReq) ProtoReflect() protoreflect.Message + func (x *SnapPictureReq) Reset() + func (x *SnapPictureReq) String() string