Documentation ¶
Overview ¶
Package common ...
Index ¶
- Constants
- func DeleteSubscription(publisherURL string, clientID uuid.UUID) error
- func GetCurrentState(clientID uuid.UUID, publisherURL, resourceAddress string) (*cloudevents.Event, *cneevent.Data, error)
- func GetEventData(url string) (*cloudevents.Event, *cneevent.Data, error)
- func GetResources() map[string]string
- func Post(address string, e cloudevents.Event) (int, error)
- func Print(color string, data string)
- func PrintEvent(data *cneevent.Data, eventType string, eTime time.Time)
- func PrintHeader()
- func StartServer(wg *sync.WaitGroup, clientAddress string, stopHTTPServerChan chan bool)
- func Subscribe(clientID uuid.UUID, subs []pubsub.PubSub, ...) error
Constants ¶
View Source
const ( // ColorRed ... ColorRed = "\033[31m" // ColorGreen ... ColorGreen = "\033[32m" // ColorYellow ... ColorYellow = "\033[33m" )
View Source
const (
// CURRENTSTATE resource path name
CURRENTSTATE = "CurrentState"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteSubscription ¶
DeleteSubscription ... delete all subscription data
func GetCurrentState ¶
func GetCurrentState(clientID uuid.UUID, publisherURL, resourceAddress string) (*cloudevents.Event, *cneevent.Data, error)
GetCurrentState ... get current ptp event state
func GetEventData ¶
GetEventData ... getter method
func PrintEvent ¶
PrintEvent ...
func StartServer ¶
StartServer ... start event consumer application
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.