Documentation ¶
Index ¶
- Constants
- Variables
- func NewMetathingsDevicedService(opt *MetathingsDevicedServiceOption, logger log.FieldLogger, ...) (pb.DevicedServiceServer, error)
- type MetathingsDevicedService
- func (self *MetathingsDevicedService) AuthorizeDeleteDevice(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeGetDevice(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeGetDeviceByModule(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeGetObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeGetObjectContent(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeHeartbeat(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeListObjects(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizePatchDevice(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizePutObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeRemoveObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeRenameObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) AuthorizeUnaryCall(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) Connect(stream pb.DevicedService_ConnectServer) error
- func (self *MetathingsDevicedService) CreateDevice(ctx context.Context, req *pb.CreateDeviceRequest) (*pb.CreateDeviceResponse, error)
- func (self *MetathingsDevicedService) DeleteDevice(ctx context.Context, req *pb.DeleteDeviceRequest) (*empty.Empty, error)
- func (self *MetathingsDevicedService) GetDevice(ctx context.Context, req *pb.GetDeviceRequest) (*pb.GetDeviceResponse, error)
- func (self *MetathingsDevicedService) GetDeviceByModule(ctx context.Context, req *pb.GetDeviceByModuleRequest) (*pb.GetDeviceByModuleResponse, error)
- func (self *MetathingsDevicedService) GetObject(ctx context.Context, req *pb.GetObjectRequest) (*pb.GetObjectResponse, error)
- func (self *MetathingsDevicedService) GetObjectContent(ctx context.Context, req *pb.GetObjectContentRequest) (*pb.GetObjectContentResponse, error)
- func (self *MetathingsDevicedService) GetObjectStreamingContent(*pb.GetObjectStreamingContentRequest, ...) error
- func (self *MetathingsDevicedService) Heartbeat(ctx context.Context, req *pb.HeartbeatRequest) (*empty.Empty, error)
- func (self *MetathingsDevicedService) IsIgnoreMethod(md *grpc_helper.MethodDescription) bool
- func (self *MetathingsDevicedService) ListDevices(ctx context.Context, req *pb.ListDevicesRequest) (*pb.ListDevicesResponse, error)
- func (self *MetathingsDevicedService) ListObjects(ctx context.Context, req *pb.ListObjectsRequest) (*pb.ListObjectsResponse, error)
- func (self *MetathingsDevicedService) PatchDevice(ctx context.Context, req *pb.PatchDeviceRequest) (*pb.PatchDeviceResponse, error)
- func (self *MetathingsDevicedService) PullFrameFromFlow(req *pb.PullFrameFromFlowRequest, ...) error
- func (self *MetathingsDevicedService) PushFrameToFlow(stm pb.DevicedService_PushFrameToFlowServer) error
- func (self *MetathingsDevicedService) PutObject(ctx context.Context, req *pb.PutObjectRequest) (*empty.Empty, error)
- func (self *MetathingsDevicedService) QueryFramesFromFlow(ctx context.Context, req *pb.QueryFramesFromFlowRequest) (*pb.QueryFramesFromFlowResponse, error)
- func (self *MetathingsDevicedService) RemoveObject(ctx context.Context, req *pb.RemoveObjectRequest) (*empty.Empty, error)
- func (self *MetathingsDevicedService) RenameObject(ctx context.Context, req *pb.RenameObjectRequest) (*empty.Empty, error)
- func (self *MetathingsDevicedService) ShowDevice(ctx context.Context, _ *empty.Empty) (*pb.ShowDeviceResponse, error)
- func (self *MetathingsDevicedService) StreamCall(stm pb.DevicedService_StreamCallServer) error
- func (self *MetathingsDevicedService) UnaryCall(ctx context.Context, req *pb.UnaryCallRequest) (*pb.UnaryCallResponse, error)
- func (self *MetathingsDevicedService) ValidateCreateDevice(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateDeleteDevice(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateGetDevice(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateGetDeviceByModule(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateGetObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateGetObjectContent(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateHeartbeat(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateListObjects(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidatePatchDevice(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidatePutObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateRemoveObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateRenameObject(ctx context.Context, in interface{}) error
- func (self *MetathingsDevicedService) ValidateUnaryCall(ctx context.Context, in interface{}) error
- type MetathingsDevicedServiceOption
Constants ¶
View Source
const ( KIND_DEVICE = "deviced:device" KIND_MODULE = "deviced:module" KIND_FLOW = "deviced:flow" )
Variables ¶
Functions ¶
func NewMetathingsDevicedService ¶
func NewMetathingsDevicedService( opt *MetathingsDevicedServiceOption, logger log.FieldLogger, storage storage.Storage, session_storage session_storage.SessionStorage, simple_storage simple_storage.SimpleStorage, authorizer identityd_authorizer.Authorizer, validator identityd_validator.Validator, tkvdr token_helper.TokenValidator, cc connection.ConnectionCenter, tknr token_helper.Tokener, cli_fty *client_helper.ClientFactory, flw_fty flow.FlowFactory, ) (pb.DevicedServiceServer, error)
Types ¶
type MetathingsDevicedService ¶
type MetathingsDevicedService struct { grpc_auth.ServiceAuthFuncOverride // contains filtered or unexported fields }
func (*MetathingsDevicedService) AuthorizeDeleteDevice ¶
func (self *MetathingsDevicedService) AuthorizeDeleteDevice(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeGetDevice ¶
func (self *MetathingsDevicedService) AuthorizeGetDevice(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeGetDeviceByModule ¶ added in v0.100.0
func (self *MetathingsDevicedService) AuthorizeGetDeviceByModule(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeGetObject ¶
func (self *MetathingsDevicedService) AuthorizeGetObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeGetObjectContent ¶
func (self *MetathingsDevicedService) AuthorizeGetObjectContent(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeHeartbeat ¶
func (self *MetathingsDevicedService) AuthorizeHeartbeat(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeListObjects ¶
func (self *MetathingsDevicedService) AuthorizeListObjects(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizePatchDevice ¶
func (self *MetathingsDevicedService) AuthorizePatchDevice(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizePutObject ¶
func (self *MetathingsDevicedService) AuthorizePutObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeRemoveObject ¶
func (self *MetathingsDevicedService) AuthorizeRemoveObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeRenameObject ¶
func (self *MetathingsDevicedService) AuthorizeRenameObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) AuthorizeUnaryCall ¶
func (self *MetathingsDevicedService) AuthorizeUnaryCall(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) Connect ¶
func (self *MetathingsDevicedService) Connect(stream pb.DevicedService_ConnectServer) error
func (*MetathingsDevicedService) CreateDevice ¶
func (self *MetathingsDevicedService) CreateDevice(ctx context.Context, req *pb.CreateDeviceRequest) (*pb.CreateDeviceResponse, error)
func (*MetathingsDevicedService) DeleteDevice ¶
func (self *MetathingsDevicedService) DeleteDevice(ctx context.Context, req *pb.DeleteDeviceRequest) (*empty.Empty, error)
func (*MetathingsDevicedService) GetDevice ¶
func (self *MetathingsDevicedService) GetDevice(ctx context.Context, req *pb.GetDeviceRequest) (*pb.GetDeviceResponse, error)
func (*MetathingsDevicedService) GetDeviceByModule ¶ added in v0.100.0
func (self *MetathingsDevicedService) GetDeviceByModule(ctx context.Context, req *pb.GetDeviceByModuleRequest) (*pb.GetDeviceByModuleResponse, error)
func (*MetathingsDevicedService) GetObject ¶
func (self *MetathingsDevicedService) GetObject(ctx context.Context, req *pb.GetObjectRequest) (*pb.GetObjectResponse, error)
func (*MetathingsDevicedService) GetObjectContent ¶
func (self *MetathingsDevicedService) GetObjectContent(ctx context.Context, req *pb.GetObjectContentRequest) (*pb.GetObjectContentResponse, error)
func (*MetathingsDevicedService) GetObjectStreamingContent ¶
func (self *MetathingsDevicedService) GetObjectStreamingContent(*pb.GetObjectStreamingContentRequest, pb.DevicedService_GetObjectStreamingContentServer) error
func (*MetathingsDevicedService) Heartbeat ¶
func (self *MetathingsDevicedService) Heartbeat(ctx context.Context, req *pb.HeartbeatRequest) (*empty.Empty, error)
func (*MetathingsDevicedService) IsIgnoreMethod ¶
func (self *MetathingsDevicedService) IsIgnoreMethod(md *grpc_helper.MethodDescription) bool
func (*MetathingsDevicedService) ListDevices ¶
func (self *MetathingsDevicedService) ListDevices(ctx context.Context, req *pb.ListDevicesRequest) (*pb.ListDevicesResponse, error)
func (*MetathingsDevicedService) ListObjects ¶
func (self *MetathingsDevicedService) ListObjects(ctx context.Context, req *pb.ListObjectsRequest) (*pb.ListObjectsResponse, error)
func (*MetathingsDevicedService) PatchDevice ¶
func (self *MetathingsDevicedService) PatchDevice(ctx context.Context, req *pb.PatchDeviceRequest) (*pb.PatchDeviceResponse, error)
func (*MetathingsDevicedService) PullFrameFromFlow ¶
func (self *MetathingsDevicedService) PullFrameFromFlow(req *pb.PullFrameFromFlowRequest, stm pb.DevicedService_PullFrameFromFlowServer) error
func (*MetathingsDevicedService) PushFrameToFlow ¶
func (self *MetathingsDevicedService) PushFrameToFlow(stm pb.DevicedService_PushFrameToFlowServer) error
func (*MetathingsDevicedService) PutObject ¶
func (self *MetathingsDevicedService) PutObject(ctx context.Context, req *pb.PutObjectRequest) (*empty.Empty, error)
func (*MetathingsDevicedService) QueryFramesFromFlow ¶
func (self *MetathingsDevicedService) QueryFramesFromFlow(ctx context.Context, req *pb.QueryFramesFromFlowRequest) (*pb.QueryFramesFromFlowResponse, error)
func (*MetathingsDevicedService) RemoveObject ¶
func (self *MetathingsDevicedService) RemoveObject(ctx context.Context, req *pb.RemoveObjectRequest) (*empty.Empty, error)
func (*MetathingsDevicedService) RenameObject ¶
func (self *MetathingsDevicedService) RenameObject(ctx context.Context, req *pb.RenameObjectRequest) (*empty.Empty, error)
func (*MetathingsDevicedService) ShowDevice ¶
func (self *MetathingsDevicedService) ShowDevice(ctx context.Context, _ *empty.Empty) (*pb.ShowDeviceResponse, error)
func (*MetathingsDevicedService) StreamCall ¶
func (self *MetathingsDevicedService) StreamCall(stm pb.DevicedService_StreamCallServer) error
func (*MetathingsDevicedService) UnaryCall ¶
func (self *MetathingsDevicedService) UnaryCall(ctx context.Context, req *pb.UnaryCallRequest) (*pb.UnaryCallResponse, error)
func (*MetathingsDevicedService) ValidateCreateDevice ¶
func (self *MetathingsDevicedService) ValidateCreateDevice(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateDeleteDevice ¶
func (self *MetathingsDevicedService) ValidateDeleteDevice(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateGetDevice ¶
func (self *MetathingsDevicedService) ValidateGetDevice(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateGetDeviceByModule ¶ added in v0.100.0
func (self *MetathingsDevicedService) ValidateGetDeviceByModule(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateGetObject ¶
func (self *MetathingsDevicedService) ValidateGetObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateGetObjectContent ¶
func (self *MetathingsDevicedService) ValidateGetObjectContent(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateHeartbeat ¶
func (self *MetathingsDevicedService) ValidateHeartbeat(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateListObjects ¶
func (self *MetathingsDevicedService) ValidateListObjects(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidatePatchDevice ¶
func (self *MetathingsDevicedService) ValidatePatchDevice(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidatePutObject ¶
func (self *MetathingsDevicedService) ValidatePutObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateRemoveObject ¶
func (self *MetathingsDevicedService) ValidateRemoveObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateRenameObject ¶
func (self *MetathingsDevicedService) ValidateRenameObject(ctx context.Context, in interface{}) error
func (*MetathingsDevicedService) ValidateUnaryCall ¶
func (self *MetathingsDevicedService) ValidateUnaryCall(ctx context.Context, in interface{}) error
type MetathingsDevicedServiceOption ¶
type MetathingsDevicedServiceOption struct{}
Source Files ¶
- connect.go
- constant.go
- create_device.go
- delete_device.go
- errors.go
- get_device.go
- get_device_by_module.go
- get_object.go
- get_object_content.go
- get_object_streaming_content.go
- heartbeat.go
- helper.go
- list_devices.go
- list_objects.go
- patch_device.go
- pull_frame_from_flow.go
- push_frame_to_flow.go
- put_object.go
- query_frames_from_flow.go
- remove_object.go
- rename_object.go
- service.go
- show_device.go
- stream_call.go
- unary_call.go
Click to show internal directories.
Click to hide internal directories.