usbmeta

package
v3.6.5-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ds store.DataStore)

func Load

func Load(usb *peripheral.Usb) error

Load updates the USB metadata tables in the database.

Types

type Class

type Class struct {
	ClassId    string    `db:"class_id,omitempty"       json:"class_id"`
	ClassDesc  string    `db:"class_desc,omitempty"     json:"class_desc"`
	LastUpdate time.Time `db:"last_update,omitempty"    json:"last_update"`
}

func (*Class) Create

func (this *Class) Create() (int64, error)

func (*Class) Read

func (this *Class) Read(arg interface{}) error

func (*Class) String

func (this *Class) String() string

type Product

type Product struct {
	VendorId    string    `db:"vendor_id,omitempty"      json:"vendor_id"`
	ProductId   string    `db:"product_id,omitempty"     json:"product_id"`
	ProductName string    `db:"product_name,omitempty"   json:"product_name"`
	LastUpdate  time.Time `db:"last_update,omitempty"    json:"last_update"`
}

func (*Product) Create

func (this *Product) Create() (int64, error)

func (*Product) Read

func (this *Product) Read(arg interface{}) error

func (*Product) String

func (this *Product) String() string

type Protocol

type Protocol struct {
	ClassId      string    `db:"class_id,omitempty"       json:"class_id"`
	SubClassId   string    `db:"subclass_id,omitempty"    json:"subclass_id"`
	ProtocolId   string    `db:"protocol_id,omitempty"    json:"protocol_id"`
	ProtocolDesc string    `db:"protocol_desc,omitempty"  json:"protocol_desc"`
	LastUpdate   time.Time `db:"last_update,omitempty"    json:"last_update"`
}

func (*Protocol) Create

func (this *Protocol) Create() (int64, error)

func (*Protocol) Read

func (this *Protocol) Read(arg interface{}) error

func (*Protocol) String

func (this *Protocol) String() string

type SubClass

type SubClass struct {
	ClassId      string    `db:"class_id,omitempty"       json:"class_id"`
	SubClassId   string    `db:"subclass_id,omitempty"    json:"subclass_id"`
	SubClassDesc string    `db:"subclass_desc,omitempty"  json:"subclass_desc"`
	LastUpdate   time.Time `db:"last_update,omitempty"    json:"last_update"`
}

func (*SubClass) Create

func (this *SubClass) Create() (int64, error)

func (*SubClass) Read

func (this *SubClass) Read(arg interface{}) error

func (*SubClass) String

func (this *SubClass) String() string

type Vendor

type Vendor struct {
	VendorId   string    `db:"vendor_id,omitempty"      json:"vendor_id"`
	VendorName string    `db:"vendor_name,omitempty"    json:"vendor_name"`
	LastUpdate time.Time `db:"last_update,omitempty"    json:"last_update"`
}

func (*Vendor) Create

func (this *Vendor) Create() (int64, error)

func (*Vendor) Read

func (this *Vendor) Read(arg interface{}) error

func (*Vendor) String

func (this *Vendor) String() string

Jump to

Keyboard shortcuts

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