Documentation
¶
Index ¶
Constants ¶
View Source
const RegistersExpires = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationConfig ¶
type Environment ¶
type Environment struct {
Config Config
ProjectTitle string
Views []ViewConfig
Authentication AuthenticationConfig
RegisterDbOfDevice RegisterDbOfDeviceFunc
StateStorage *dataflow.ValueStorage
CommandStorage *dataflow.ValueStorage
}
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message" example:"status bad request"`
}
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func Run ¶
func Run(env *Environment) (httpServer *HttpServer)
func (*HttpServer) Shutdown ¶
func (s *HttpServer) Shutdown()
type RegisterDbOfDeviceFunc ¶ added in v3.7.0
type RegisterDbOfDeviceFunc func(deviceName string) *dataflow.RegisterDb
type ViewConfig ¶
type ViewDeviceConfig ¶
type ViewDeviceConfig interface {
Name() string
Title() string
Filter() dataflow.RegisterFilterConf
}
Click to show internal directories.
Click to hide internal directories.