Documentation ¶
Overview ¶
Package voucherpage provides the pages that a voucher interacts with.
Index ¶
- Constants
- func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func Register(rootMux *http.ServeMux, logger Logger, tmpls template.Templates, ...)
- type DashboardStore
- type ErrorHandler
- type Handler
- type Logger
- type OneLoginClient
- type SessionStore
- type ShareCodeStore
- type Template
- type VoucherStore
Constants ¶
View Source
const ( None handleOpt = 1 << iota RequireSession CanGoBack )
Variables ¶
This section is empty.
Functions ¶
func EnterReferenceNumber ¶
func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, sessionStore SessionStore, voucherStore VoucherStore) page.Handler
func Register ¶
func Register( rootMux *http.ServeMux, logger Logger, tmpls template.Templates, sessionStore SessionStore, voucherStore VoucherStore, oneLoginClient OneLoginClient, shareCodeStore ShareCodeStore, dashboardStore DashboardStore, errorHandler page.ErrorHandler, )
Types ¶
type DashboardStore ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type Handler ¶
type Handler func(data appcontext.Data, w http.ResponseWriter, r *http.Request) error
type OneLoginClient ¶
type SessionStore ¶
type SessionStore interface { Login(r *http.Request) (*sesh.LoginSession, error) LpaData(r *http.Request) (*sesh.LpaDataSession, error) OneLogin(r *http.Request) (*sesh.OneLoginSession, error) SetLogin(r *http.Request, w http.ResponseWriter, session *sesh.LoginSession) error SetLpaData(r *http.Request, w http.ResponseWriter, lpaDataSession *sesh.LpaDataSession) error SetOneLogin(r *http.Request, w http.ResponseWriter, session *sesh.OneLoginSession) error }
type ShareCodeStore ¶
type ShareCodeStore interface {}
type VoucherStore ¶
Click to show internal directories.
Click to hide internal directories.