resource

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 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) (Info, error)
	Set(info Info) error
	Delete(name string) error
}

DBInterface interface

type Info added in v1.1.0

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

Info struct

type Query

type Query struct {
}

Query struct

func (Query) Delete

func (Query) Delete(name string) error

Delete deletes the resource name that matches name

func (Query) Get

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

Get returns the resource info that matches name

func (Query) Set

func (Query) Set(info Info) error

Set sets the resource info

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