Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
RespondWithError is a helper method for returning an error http message
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
RespondWithJSON is a helper method for returning an HTTP message with a JSON payload
Types ¶
type Configuration ¶
type Configuration struct {
Spec ConfigurationSpec `json:"spec,omitempty"`
}
type ConfigurationSpec ¶
type ConfigurationSpec struct {
TracingSpec TracingSpec `json:"tracing,omitempty"`
}
type Server ¶ added in v0.2.0
Server runs the Dapr API server for components and configurations
func NewAPIServer ¶
NewAPIServer returns a new API server
Click to show internal directories.
Click to hide internal directories.