unit_http_json_items_server

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemNameStatus = "Status"
)

Variables

View Source
var Image []byte

Functions

func New

Types

type Config

type Config struct {
	Port  float64 `json:"port"`
	Items []Item  `json:"items"`
}

type Item

type Item struct {
	Name    string `json:"item_name"`
	UrlPath string `json:"url_path"`
}

type UnitHttpJsonServer

type UnitHttpJsonServer struct {
	units_common.Unit
	// contains filtered or unexported fields
}

func (*UnitHttpJsonServer) GetConfigMeta

func (c *UnitHttpJsonServer) GetConfigMeta() string

func (*UnitHttpJsonServer) InternalUnitStart

func (c *UnitHttpJsonServer) InternalUnitStart() error

func (*UnitHttpJsonServer) InternalUnitStop

func (c *UnitHttpJsonServer) InternalUnitStop()

func (*UnitHttpJsonServer) Tick

func (c *UnitHttpJsonServer) Tick()

Jump to

Keyboard shortcuts

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