Documentation
¶
Index ¶
Constants ¶
View Source
const StreamNotFound = "stream not found"
Variables ¶
This section is empty.
Functions ¶
func HandleFunc ¶
func HandleFunc(pattern string, handler http.HandlerFunc)
HandleFunc handle pattern with relative path: - "api/streams" => "{basepath}/api/streams" - "/streams" => "/streams"
Types ¶
type Message ¶
type Message struct {
Type string `json:"type"`
Value interface{} `json:"value,omitempty"`
}
Message - struct for data exchange in Web API
Click to show internal directories.
Click to hide internal directories.