Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetFireInterval() string
- func (m *Config) GetNameUrl() string
- func (m *Config) GetPollingInterval() string
- func (m *Config) GetServerUrl() string
- func (m *Config) GetServers() map[string]*Server
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (*Config) XXX_MessageName() string
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type PMC
- func (*PMC) ConfigURL() string
- func (p *PMC) Entry()
- func (p *PMC) Init(api types.ModuleAPIClient)
- func (p *PMC) Name() string
- func (p *PMC) NewConfig() proto.Message
- func (p *PMC) SetDiscoveryChan(c chan<- types.Event)
- func (p *PMC) SetMutationChan(c <-chan types.Event)
- func (p *PMC) Stop()
- func (p *PMC) UpdateConfig(cfg proto.Message) (e error)
- type Server
- func (*Server) Descriptor() ([]byte, []int)
- func (m *Server) GetIp() string
- func (m *Server) GetName() string
- func (m *Server) GetPort() int32
- func (m *Server) Marshal() (dAtA []byte, err error)
- func (m *Server) MarshalTo(dAtA []byte) (int, error)
- func (m *Server) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Server) ProtoMessage()
- func (m *Server) Reset()
- func (m *Server) Size() (n int)
- func (m *Server) String() string
- func (m *Server) Unmarshal(dAtA []byte) error
- func (m *Server) XXX_DiscardUnknown()
- func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Server) XXX_Merge(src proto.Message)
- func (*Server) XXX_MessageName() string
- func (m *Server) XXX_Size() int
- func (m *Server) XXX_Unmarshal(b []byte) error
Constants ¶
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Servers map[string]*Server `` /* 155-byte string literal not displayed */ PollingInterval string `protobuf:"bytes,2,opt,name=polling_interval,json=pollingInterval,proto3" json:"polling_interval,omitempty"` FireInterval string `protobuf:"bytes,3,opt,name=fire_interval,json=fireInterval,proto3" json:"fire_interval,omitempty"` NameUrl string `protobuf:"bytes,4,opt,name=name_url,json=nameUrl,proto3" json:"name_url,omitempty"` ServerUrl string `protobuf:"bytes,5,opt,name=server_url,json=serverUrl,proto3" json:"server_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetFireInterval ¶
func (*Config) GetNameUrl ¶
func (*Config) GetPollingInterval ¶
func (*Config) GetServerUrl ¶
func (*Config) GetServers ¶
func (*Config) MarshalToSizedBuffer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_MessageName ¶
func (*Config) XXX_Unmarshal ¶
type PMC ¶
type PMC struct {
// contains filtered or unexported fields
}
PMC provides a power on/off interface to powerman
func (*PMC) Init ¶
func (p *PMC) Init(api types.ModuleAPIClient)
Init is used to intialize an executable module prior to entrypoint
func (*PMC) SetDiscoveryChan ¶
SetDiscoveryChan sets the current discovery channel this is generally done by the API
func (*PMC) SetMutationChan ¶
SetMutationChan sets the current mutation channel this is generally done by the API
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 int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Server) Descriptor ¶
func (*Server) MarshalToSizedBuffer ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) XXX_DiscardUnknown ¶
func (m *Server) XXX_DiscardUnknown()
func (*Server) XXX_Marshal ¶
func (*Server) XXX_MessageName ¶
func (*Server) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.