channel

package
Version: v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Added

type Added func(c Channel)

type Channel

type Channel struct {
	ID          string      `json:"id" xml:"id"`
	Source      Source      `json:"source" xml:"source"`
	Destination Destination `json:"destination" xml:"destination"`
}

type Deleted

type Deleted func(c Channel)

type Destination

type Destination struct {
	Driver string            `json:"driver" xml:"driver"`
	Config DestinationConfig `json:"config" xml:"config"`
}

type DestinationConfig

type DestinationConfig interface{}

type EventHandler

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

func NewEventHandler

func NewEventHandler(channelUpdatedCallback Updated, channelDeletedCallback Deleted, channelAddedCallback Added) *EventHandler

func (*EventHandler) OnAdded

func (h *EventHandler) OnAdded(c Channel)

func (*EventHandler) OnDeleted

func (h *EventHandler) OnDeleted(c Channel)

func (*EventHandler) OnUpdated

func (h *EventHandler) OnUpdated(c Channel)

type Source

type Source struct {
	Driver string       `json:"driver" xml:"driver"`
	Config SourceConfig `json:"config" xml:"config"`
}

type SourceConfig

type SourceConfig interface{}

type Updated

type Updated func(c Channel)

Jump to

Keyboard shortcuts

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