Documentation ¶
Index ¶
- type ConsoleConsumer
- type Consumer
- type Entry
- type Executor
- type HassioConsumer
- type HttpServer
- type IndexModel
- type MemoryConsumer
- func (mc *MemoryConsumer[R]) Close() error
- func (mc *MemoryConsumer[R]) Consume(v R) error
- func (mc MemoryConsumer[R]) Data(c ...func(R) Entry) []Entry
- func (mc *MemoryConsumer[R]) Init(d bool) error
- func (mc MemoryConsumer[R]) Last() R
- func (mc *MemoryConsumer[R]) Setup(cmd *cobra.Command, name string)
- type Producer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleConsumer ¶ added in v0.1.1
func (*ConsoleConsumer[R]) Close ¶ added in v0.1.1
func (cc *ConsoleConsumer[R]) Close() error
func (*ConsoleConsumer[R]) Consume ¶ added in v0.1.1
func (cc *ConsoleConsumer[R]) Consume(v R) error
func (*ConsoleConsumer[R]) Init ¶ added in v0.1.1
func (cc *ConsoleConsumer[R]) Init(d bool) error
type Consumer ¶ added in v0.1.0
type Consumer[R any] interface { Setup(*cobra.Command, string) Init(bool) error Consume(v R) error Close() error }
Consumer is generic consumer
type Executor ¶ added in v0.1.0
type Executor interface {
Main()
}
Executor to be obtained via NewExecutor
type HassioConsumer ¶ added in v0.1.0
type HassioConsumer[R any] struct { Converter func(R) any OnConnect func(client MQTT.Client, topic, topicc, topica string) // contains filtered or unexported fields }
func (*HassioConsumer[R]) Close ¶ added in v0.1.0
func (hc *HassioConsumer[R]) Close() error
func (*HassioConsumer[R]) Consume ¶ added in v0.1.0
func (hc *HassioConsumer[R]) Consume(v R) error
func (*HassioConsumer[R]) Init ¶ added in v0.1.0
func (hc *HassioConsumer[R]) Init(debug bool) error
type HttpServer ¶ added in v0.1.0
type HttpServer[R any] struct { ToJsonConverter func(R) any ToRawConverter func(R) Entry YAxis []string // contains filtered or unexported fields }
func (*HttpServer[R]) Close ¶ added in v0.1.0
func (ht *HttpServer[R]) Close() error
func (*HttpServer[R]) Consume ¶ added in v0.1.0
func (ht *HttpServer[R]) Consume(v R) error
func (*HttpServer[R]) Init ¶ added in v0.1.0
func (ht *HttpServer[R]) Init(d bool) error
type IndexModel ¶ added in v0.1.2
type MemoryConsumer ¶ added in v0.1.0
type MemoryConsumer[R any] struct { // contains filtered or unexported fields }
func (*MemoryConsumer[R]) Close ¶ added in v0.1.0
func (mc *MemoryConsumer[R]) Close() error
func (*MemoryConsumer[R]) Consume ¶ added in v0.1.0
func (mc *MemoryConsumer[R]) Consume(v R) error
func (MemoryConsumer[R]) Data ¶ added in v0.1.2
func (mc MemoryConsumer[R]) Data(c ...func(R) Entry) []Entry
func (*MemoryConsumer[R]) Init ¶ added in v0.1.0
func (mc *MemoryConsumer[R]) Init(d bool) error
func (MemoryConsumer[R]) Last ¶ added in v0.1.0
func (mc MemoryConsumer[R]) Last() R
Source Files ¶
Click to show internal directories.
Click to hide internal directories.