eventservices

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTimeToTimestamp

func ConvertTimeToTimestamp(t time.Time) *types.Timestamp

func MapToFactomEvent

func MapToFactomEvent(eventInput eventinput.EventInput, broadcastContent eventconfig.BroadcastContent, sendStateChangeEvents bool) (*eventmessages.FactomEvent, error)

Types

type EventSender

type EventSender interface {
	// Send(event eventinput.EventInput) error
	GetBroadcastContent() eventconfig.BroadcastContent
	Shutdown()
	IsSendStateChangeEvents() bool
	ReplayDuringStartup() bool
	GetEventQueue() chan *eventmessages.FactomEvent
	IncreaseDroppedFromQueueCounter()
}

func NewEventSender

func NewEventSender(config *util.FactomdConfig, factomParams *globals.FactomParams) EventSender

func NewEventSenderTo

func NewEventSenderTo(params *EventServiceParams) EventSender

type EventServiceParams

type EventServiceParams struct {
	EnableLiveFeedAPI     bool
	Protocol              string
	Address               string
	ClientPort            string
	OutputFormat          eventconfig.EventFormat
	ReplayDuringStartup   bool
	SendStateChangeEvents bool
	BroadcastContent      eventconfig.BroadcastContent
	PersistentReconnect   bool
}

type RCD

type RCD interface {
	GetPublicKey() []byte
}

Jump to

Keyboard shortcuts

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