resource

package
v0.0.0-...-707febc Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInterface

type DBInterface interface {
	Get(id string) (ResourceInfo, error)
	Set(info ResourceInfo) error
	Delete(name string) error
}

type Query

type Query struct {
}

func (Query) Delete

func (Query) Delete(name string) error

func (Query) Get

func (Query) Get(name string) (ResourceInfo, error)

func (Query) Set

func (Query) Set(info ResourceInfo) error

type ResourceInfo

type ResourceInfo struct {
	Name  string  `json:"name"`
	Value float64 `json:"value"`
}

Directories

Path Synopsis
Package mock_resource is a generated GoMock package.
Package mock_resource is a generated GoMock package.

Jump to

Keyboard shortcuts

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