fake

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fake contains fake structs used during tests

Index

Constants

This section is empty.

Variables

View Source
var SnakeOilProv = GenSnakeOilProv()

Functions

func GenSnakeOilKey

func GenSnakeOilKey(perm string) string

func GenSnakeOilProv

func GenSnakeOilProv() mjwt.Signer

Types

type Compilable

type Compilable struct{ Done bool }

Compilable implements utils.Compilable and stores if the Compile function is called.

func (*Compilable) Compile

func (f *Compilable) Compile()

type Domains

type Domains struct{}

Domains implements DomainProvider and makes sure `example.com` is valid

func (*Domains) Compile

func (f *Domains) Compile()

func (*Domains) Delete

func (f *Domains) Delete(string)

func (*Domains) IsValid

func (f *Domains) IsValid(host string) bool

func (*Domains) Put

func (f *Domains) Put(string, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL