deny

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: AGPL-3.0, BSD-2-Clause, ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*sync.Mutex

	Request chan Request
	Secret  string
	Timeout time.Duration
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Run

func (c *Client) Run(ctx context.Context)

func (*Client) SetNow

func (c *Client) SetNow(now func() time.Time) *Client

func (*Client) SetSecret

func (c *Client) SetSecret(secret string) *Client

func (*Client) SetTimeout

func (c *Client) SetTimeout(d time.Duration) *Client

func (*Client) WithNow

func (c *Client) WithNow(now func() time.Time) *Client

func (*Client) WithSecret

func (c *Client) WithSecret(secret string) *Client

func (*Client) WithTimeout

func (c *Client) WithTimeout(d time.Duration) *Client

type Request

type Request struct {
	Result    chan string
	URL       string
	BookingID string
	ExpiresAt int64
}

Jump to

Keyboard shortcuts

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