rfthermaldiscovery

package
v0.0.0-...-03891ea Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ThermalStateURL points to Thermal extension
	ThermalStateURL = "type.googleapis.com/RFThermal.Temp/State"
	// ModuleStateURL refers to module state
	ModuleStateURL = "/Services/rfthermaldiscovery/State"
)

Variables

View Source
var (
	ErrInvalidLengthRfthermaldiscovery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRfthermaldiscovery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRfthermaldiscovery = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type CPUTempCollection

type CPUTempCollection struct {
	CPUTempList []nodeCPUTemp `json:"cputemplist"`
}

CPUTempCollection is array of CPU Temperature responses

type Config

type Config struct {
	Servers              map[string]*Server     `` /* 155-byte string literal not displayed */
	IpUrl                string                 `protobuf:"bytes,2,opt,name=ip_url,json=ipUrl,proto3" json:"ip_url,omitempty"`
	AggUrl               string                 `protobuf:"bytes,3,opt,name=agg_url,json=aggUrl,proto3" json:"agg_url,omitempty"`
	PollingInterval      string                 `protobuf:"bytes,4,opt,name=polling_interval,json=pollingInterval,proto3" json:"polling_interval,omitempty"`
	RfThermalThresholds  map[string]*Thresholds `` /* 208-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetAggUrl

func (m *Config) GetAggUrl() string

func (*Config) GetIpUrl

func (m *Config) GetIpUrl() string

func (*Config) GetPollingInterval

func (m *Config) GetPollingInterval() string

func (*Config) GetRfThermalThresholds

func (m *Config) GetRfThermalThresholds() map[string]*Thresholds

func (*Config) GetServers

func (m *Config) GetServers() map[string]*Server

func (*Config) Marshal

func (m *Config) Marshal() (dAtA []byte, err error)

func (*Config) MarshalTo

func (m *Config) MarshalTo(dAtA []byte) (int, error)

func (*Config) MarshalToSizedBuffer

func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) Size

func (m *Config) Size() (n int)

func (*Config) String

func (m *Config) String() string

func (*Config) Unmarshal

func (m *Config) Unmarshal(dAtA []byte) error

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_MessageName

func (*Config) XXX_MessageName() string

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

type PayLoad

type PayLoad struct {
	NodesAddressList []string `json:"nodesaddresslist"`
	Timeout          int32    `json:"timeout"`
}

PayLoad struct for collection of nodes

type RFD

type RFD struct {
	// contains filtered or unexported fields
}

RFD provides rfdiscovery module capabilities

func (*RFD) ConfigURL

func (*RFD) ConfigURL() string

ConfigURL gives the any resolver URL for the config

func (*RFD) Entry

func (rfd *RFD) Entry()

Entry is the module's executable entrypoint

func (*RFD) Init

func (rfd *RFD) Init(api types.ModuleAPIClient)

Init is used to intialize an executable module prior to entrypoint

func (*RFD) Name

func (*RFD) Name() string

Name returns the FQDN of the module

func (*RFD) NewConfig

func (*RFD) NewConfig() proto.Message

NewConfig returns a fully initialized default config

func (*RFD) SetDiscoveryChan

func (rfd *RFD) SetDiscoveryChan(c chan<- types.Event)

SetDiscoveryChan sets the current discovery channel this is generally done by the API

func (*RFD) Stop

func (rfd *RFD) Stop()

Stop should perform a graceful exit

func (*RFD) UpdateConfig

func (rfd *RFD) UpdateConfig(cfg proto.Message) (e error)

UpdateConfig updates the running config

type Server

type Server struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ip                   string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Port                 string   `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
	ReqTimeout           int32    `protobuf:"varint,4,opt,name=req_timeout,json=reqTimeout,proto3" json:"req_timeout,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Server) Descriptor

func (*Server) Descriptor() ([]byte, []int)

func (*Server) GetIp

func (m *Server) GetIp() string

func (*Server) GetName

func (m *Server) GetName() string

func (*Server) GetPort

func (m *Server) GetPort() string

func (*Server) GetReqTimeout

func (m *Server) GetReqTimeout() int32

func (*Server) Marshal

func (m *Server) Marshal() (dAtA []byte, err error)

func (*Server) MarshalTo

func (m *Server) MarshalTo(dAtA []byte) (int, error)

func (*Server) MarshalToSizedBuffer

func (m *Server) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) Size

func (m *Server) Size() (n int)

func (*Server) String

func (m *Server) String() string

func (*Server) Unmarshal

func (m *Server) Unmarshal(dAtA []byte) error

func (*Server) XXX_DiscardUnknown

func (m *Server) XXX_DiscardUnknown()

func (*Server) XXX_Marshal

func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Server) XXX_Merge

func (m *Server) XXX_Merge(src proto.Message)

func (*Server) XXX_MessageName

func (*Server) XXX_MessageName() string

func (*Server) XXX_Size

func (m *Server) XXX_Size() int

func (*Server) XXX_Unmarshal

func (m *Server) XXX_Unmarshal(b []byte) error

type Thresholds

type Thresholds struct {
	LowerNormal          int32    `protobuf:"varint,1,opt,name=lower_normal,json=lowerNormal,proto3" json:"lower_normal,omitempty"`
	UpperNormal          int32    `protobuf:"varint,2,opt,name=upper_normal,json=upperNormal,proto3" json:"upper_normal,omitempty"`
	LowerHigh            int32    `protobuf:"varint,3,opt,name=lower_high,json=lowerHigh,proto3" json:"lower_high,omitempty"`
	UpperHigh            int32    `protobuf:"varint,4,opt,name=upper_high,json=upperHigh,proto3" json:"upper_high,omitempty"`
	LowerCritical        int32    `protobuf:"varint,5,opt,name=lower_critical,json=lowerCritical,proto3" json:"lower_critical,omitempty"`
	UpperCritical        int32    `protobuf:"varint,6,opt,name=upper_critical,json=upperCritical,proto3" json:"upper_critical,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Thresholds) Descriptor

func (*Thresholds) Descriptor() ([]byte, []int)

func (*Thresholds) GetLowerCritical

func (m *Thresholds) GetLowerCritical() int32

func (*Thresholds) GetLowerHigh

func (m *Thresholds) GetLowerHigh() int32

func (*Thresholds) GetLowerNormal

func (m *Thresholds) GetLowerNormal() int32

func (*Thresholds) GetUpperCritical

func (m *Thresholds) GetUpperCritical() int32

func (*Thresholds) GetUpperHigh

func (m *Thresholds) GetUpperHigh() int32

func (*Thresholds) GetUpperNormal

func (m *Thresholds) GetUpperNormal() int32

func (*Thresholds) Marshal

func (m *Thresholds) Marshal() (dAtA []byte, err error)

func (*Thresholds) MarshalTo

func (m *Thresholds) MarshalTo(dAtA []byte) (int, error)

func (*Thresholds) MarshalToSizedBuffer

func (m *Thresholds) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Thresholds) ProtoMessage

func (*Thresholds) ProtoMessage()

func (*Thresholds) Reset

func (m *Thresholds) Reset()

func (*Thresholds) Size

func (m *Thresholds) Size() (n int)

func (*Thresholds) String

func (m *Thresholds) String() string

func (*Thresholds) Unmarshal

func (m *Thresholds) Unmarshal(dAtA []byte) error

func (*Thresholds) XXX_DiscardUnknown

func (m *Thresholds) XXX_DiscardUnknown()

func (*Thresholds) XXX_Marshal

func (m *Thresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Thresholds) XXX_Merge

func (m *Thresholds) XXX_Merge(src proto.Message)

func (*Thresholds) XXX_MessageName

func (*Thresholds) XXX_MessageName() string

func (*Thresholds) XXX_Size

func (m *Thresholds) XXX_Size() int

func (*Thresholds) XXX_Unmarshal

func (m *Thresholds) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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