Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultServerReadHeaderTimeout = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { DB *sql.DB T storage.DirectoryAdmin L *zap.Logger // contains filtered or unexported fields }
func (*Server) AddReadinessCheck ¶
AddReadinessCheck will accept a function to be ran during calls to /readyx. These functions should accept a context and only return an error. When adding a readiness check a name is also provided, this name will be used when returning the state of all the checks.
func (*Server) SetHandler ¶
Click to show internal directories.
Click to hide internal directories.