Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterZone ¶
func RegisterZone(zone string, handler CodeHandler)
RegisterZone registers a handler with the given zone name.
Types ¶
type CodeHandler ¶
type CodeHandler interface { Generate() (*Code, error) Check(code *Code) error Import(code *Code) error Get() (*Code, error) }
func GetZoneHandler ¶
func GetZoneHandler(zone string) (CodeHandler, error)
GetZoneHandler returns the handler for the given zone.
type SaticCodeHandler ¶
type SaticCodeHandler struct {
// contains filtered or unexported fields
}
func NewSaticCodeHandler ¶
func NewSaticCodeHandler(verificationHash string, scrambleAlg lhash.Algorithm) (*SaticCodeHandler, error)
func (*SaticCodeHandler) Check ¶
func (h *SaticCodeHandler) Check(code *Code) error
func (*SaticCodeHandler) Generate ¶
func (h *SaticCodeHandler) Generate() (*Code, error)
func (*SaticCodeHandler) Get ¶
func (h *SaticCodeHandler) Get() (*Code, error)
func (*SaticCodeHandler) Import ¶
func (h *SaticCodeHandler) Import(code *Code) error
Click to show internal directories.
Click to hide internal directories.