Documentation ¶
Index ¶
- func HttpGet(c *fiber.Ctx, guardName string, url string, opts ...Opt) (*http.Response, error)
- func HttpPost(c *fiber.Ctx, guardName string, url string, body io.Reader, opts ...Opt) (*http.Response, error)
- func Init(ctx context.Context, client Client) (func(), error)
- func New(guardName string, opts ...Opt) fiber.Handler
- type Client
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpPost ¶
func HttpPost(c *fiber.Ctx, guardName string, url string, body io.Reader, opts ...Opt) (*http.Response, error)
HttpPost is a fiberstanza helper function (passthrough to stanza.HttpPost)
Types ¶
type Client ¶
type Client struct { // Required APIKey string // customer generated API key // Optional Name string // defines applications name Release string // defines applications version Environment string // defines applications environment StanzaHub string // host:port (ipv4, ipv6, or resolvable hostname) Guard []string // prefetch config for these guards }
Client defines options for a new Stanza Client
Click to show internal directories.
Click to hide internal directories.