hk_artemis_sdk

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 16 Imported by: 0

README

golang hikvision artemis sdk

import
go get -u github.com/RXDA/go-hikvision-artemis-sdk
usage
	aReq := ArtemisReq{
		Host:      host,
		Path:      path + appKey,
		AppKey:    appKey,
		AppSecret: appSecret,
	}
	got, err := aReq.HttpGet(nil, nil, nil, time.Second*10)
	if err != nil {
		panic(err)
	}
	fmt.Println(got)

Documentation

Overview

Package hk_artemis_sdk hikvision artemis sdk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtemisReq

type ArtemisReq struct {
	Schema    string // https or http
	Host      string // only host
	Port      uint16 // port
	Path      string
	AppKey    string
	AppSecret string
}

func (ArtemisReq) HttpGet

func (aReq ArtemisReq) HttpGet(headers, querys map[string]string, signHeaderPrefixList []string, timeout time.Duration) (*ArtemisResp, error)

HttpGet http get method

type ArtemisResp

type ArtemisResp struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data Data   `json:"data"`
}

type Data

type Data struct {
	AppSecret  string `json:"appSecret"`
	Time       string `json:"time"`
	TimeSecret string `json:"timeSecret"`
}

Jump to

Keyboard shortcuts

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