dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/clients/interfaces/device_history.go (about)

     1  //
     2  // Copyright (C) 2020 IOTech Ltd
     3  //
     4  // SPDX-License-Identifier: Apache-2.0
     5  
     6  package interfaces
     7  
     8  import (
     9  	"context"
    10  
    11  	"dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/common"
    12  	"dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/requests"
    13  	"dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/responses"
    14  	"dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/errors"
    15  )
    16  
    17  // DeviceClient defines the interface for interactions with the Device endpoint on the EdgeX Foundry core-metadata service.
    18  type DeviceHistoryClient interface {
    19  	DevicesHistoryByName(ctx context.Context, name string) (responses.MultiDevicesHistoryResponse, errors.EdgeX)
    20  	Add(ctx context.Context, reqs []requests.AddDeviceHistoryRequest) ([]common.BaseWithIdResponse, errors.EdgeX)
    21  }