Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOutDatedSubscriptionTypes ¶
gets new items from a subscription type
func SetDestinationHandler ¶
func SetDestinationHandler(destType string, handler DestinationHandler)
func SetSubTypeHandler ¶
func SetSubTypeHandler(subType string, handler SubscriptionTypeHandler)
Types ¶
type DestinationHandler ¶
type DestinationHandler interface {
Dispatch(id string, item SubscriptionItem) error
}
a destination that a subscription item can be sent to such as a discord channel
func GetDestinationHandler ¶
func GetDestinationHandler(destType string) DestinationHandler
type SubscriptionItem ¶
type SubscriptionTypeHandler ¶
type SubscriptionTypeHandler interface { GetNewItems(tags string) []SubscriptionItem Validate(tags string) (string, error) }
func GetSubTypeHandler ¶
func GetSubTypeHandler(subType string) SubscriptionTypeHandler
Click to show internal directories.
Click to hide internal directories.