Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type Pi ¶
type Pi struct {
// contains filtered or unexported fields
}
Pi is the context for the pi API.
func New ¶
func New(cfg *config.Config, pdc *pdclient.Client, udb user.Database, m mail.Mailer, s *sessions.Sessions, e *events.Manager, plugins []pdv2.Plugin) (*Pi, error)
New returns a new Pi context.
func (*Pi) HandlePolicy ¶
func (p *Pi) HandlePolicy(w http.ResponseWriter, r *http.Request)
HandlePolicy is the request handler for the pi v1 Policy route.
Click to show internal directories.
Click to hide internal directories.