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) HandleBillingStatusChanges ¶
func (p *Pi) HandleBillingStatusChanges(w http.ResponseWriter, r *http.Request)
HandleBillingStatusChanges is the request handler for the pi v1 BillingStatusChanges route.
func (*Pi) HandlePolicy ¶
func (p *Pi) HandlePolicy(w http.ResponseWriter, r *http.Request)
HandlePolicy is the request handler for the pi v1 Policy route.
func (*Pi) HandleSetBillingStatus ¶
func (p *Pi) HandleSetBillingStatus(w http.ResponseWriter, r *http.Request)
HandleSetBillingStatus is the request handler for the pi v1 BillingStatus route.
func (*Pi) HandleSummaries ¶
func (p *Pi) HandleSummaries(w http.ResponseWriter, r *http.Request)
HandleSummaries is the request handler for the pi v1 Summaries route.
Click to show internal directories.
Click to hide internal directories.