Skip to content

jakobhviid/SMAP-GoLang-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

A GO Client for SMAP

This code was written to be a GO based client for SMAP. The code is not fully implemted, and at the time of writing, and only supports subscribtions.

Usage

Here is an example of a subscribtion:

output := make(chan smap.SubscribtionMessage, 1000)
quit := make(chan bool, 1)

client := smap.NewClient("http://www.someurl.com:8079")
client.Subscribe(output, quit, "Metadata/SourceName='SomeKey'")

go func() {
    time.Sleep(time.Second * 50)
    quit <- true
}()

for item := range output {
    fmt.Println(item.Path)
}

About

A simple SMAP client wrapper written in GO.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages