Documentation
¶
Index ¶
- Variables
- func ConvertToRFC3339(unixtime string) string
- func ConvertToUnixTime(datetime string) string
- func CreateRecord(w http.ResponseWriter, r *http.Request)
- func CreateUser(w http.ResponseWriter, r *http.Request)
- func DecompressRecord(returnedRecord string) string
- func Decrypt(ciphertext string) (string, error)
- func Encrypt(plaintext string) (string, error)
- func GetAllRecords(w http.ResponseWriter, r *http.Request)
- func GetAllRecordsForOneDrone(w http.ResponseWriter, r *http.Request)
- func GetUser(w http.ResponseWriter, r *http.Request)
- func GetUsers(w http.ResponseWriter, r *http.Request)
- func HelloFabric(w http.ResponseWriter, r *http.Request)
- func ImportFromFile(filePath string)
- func InitGateway()
- func InitLedger(w http.ResponseWriter, r *http.Request)
- func PKCS7Padding(data []byte, blockSize int) []byte
- func PKCS7UnPadding(data []byte) []byte
- func QueryRecordsWithSelectorJSON(w http.ResponseWriter, r *http.Request)
- func TestQueryRecordsWithSelector(w http.ResponseWriter, r *http.Request)
- type RawRecord
- type Record
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GatewayConn *client.Gateway ClientConn *grpc.ClientConn ClientContract *client.Contract )
Functions ¶
func ConvertToRFC3339 ¶
func ConvertToUnixTime ¶
func CreateRecord ¶
func CreateRecord(w http.ResponseWriter, r *http.Request)
func CreateUser ¶
func CreateUser(w http.ResponseWriter, r *http.Request)
func DecompressRecord ¶
func GetAllRecords ¶
func GetAllRecords(w http.ResponseWriter, r *http.Request)
func GetAllRecordsForOneDrone ¶
func GetAllRecordsForOneDrone(w http.ResponseWriter, r *http.Request)
func HelloFabric ¶
func HelloFabric(w http.ResponseWriter, r *http.Request)
func ImportFromFile ¶
func ImportFromFile(filePath string)
func InitLedger ¶
func InitLedger(w http.ResponseWriter, r *http.Request)
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func QueryRecordsWithSelectorJSON ¶
func QueryRecordsWithSelectorJSON(w http.ResponseWriter, r *http.Request)
QueryRecordsWithSelectorJSON is a handler for querying records with selector in JSON format The selector is passed as a URL parameter
func TestQueryRecordsWithSelector ¶
func TestQueryRecordsWithSelector(w http.ResponseWriter, r *http.Request)
Types ¶
type RawRecord ¶
type RawRecord struct { Drone string `json:"drone"` Story string `json:"story"` Zip string `json:"zip"` Datetime string `json:"datetime"` Temperature string `json:"temperature"` Wind string `json:"wind"` Gust string `json:"gust"` Timesincelastmaintenance string `json:"timesincelastmaintenance"` Flighthours string `json:"flighthours"` Pitch string `json:"pitch"` Roll string `json:"roll"` Yaw string `json:"yaw"` Vibex string `json:"vibex"` Vibey string `json:"vibey"` Vibez string `json:"vibez"` Nsat string `json:"nsat"` Noise string `json:"noise"` Currentslope string `json:"currentslope"` Brownout string `json:"brownout"` Batterylevel string `json:"batterylevel"` Crash string `json:"crash"` }
Click to show internal directories.
Click to hide internal directories.