Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJson ¶
func WriteJson(w http.ResponseWriter, v interface{}, statusCode int)
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) HBLOCKAccessHandler ¶
type Services ¶
type Services struct { Config configuration.Config Api *Api // contains filtered or unexported fields }
type Swarm ¶
type Swarm interface {
GetNodeHealth(w http.ResponseWriter, r *http.Request)
}
func NewSwarmController ¶
func NewSwarmController(logger *logrus.Logger, swarmService swarmService.Swarm) Swarm
type Upload ¶
type Upload interface { CSV(w http.ResponseWriter, r *http.Request) ZIP(w http.ResponseWriter, r *http.Request) }
type User ¶
type User interface { GetBalance(w http.ResponseWriter, r *http.Request) GetConfig(w http.ResponseWriter, r *http.Request) }
func NewUserController ¶
Click to show internal directories.
Click to hide internal directories.