Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentData ¶
type ContentEvent ¶
type ContentEvent struct {
Type ContentEventType
Data ContentData
}
type ContentEventType ¶
type ContentEventType int
const ( Created ContentEventType = iota Updated Removed )
func (ContentEventType) String ¶
func (c ContentEventType) String() string
type ContentService ¶
type ContentService interface {
GetContent(host, uri, method, uuid string) (*[]byte, error)
SetContent(host, uri, method, uuid string, data *[]byte) error
DeleteContent(host, uri, method, uuid string) error
ListContents(uuid string) (*[]ContentData, error)
Subscribe(subscriberId string, eventTypes ...ContentEventType) <-chan ContentEvent
Unsubscribe(subscriberId string)
}
func GetContentService ¶
func GetContentService() ContentService
Click to show internal directories.
Click to hide internal directories.