api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package api is a helper for calling external third party apis

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, rsp interface{}) error

Get a url and unmarshal a json body into the given value

func Post added in v0.21.0

func Post(url string, ureq, rsp interface{}) error

Post a url and unmarshal a json body into the given value

func SetCache added in v0.26.0

func SetCache(v bool, ttl time.Duration)

Set the cache

func SetKey

func SetKey(k, v string)

Set a key within the header

Types

This section is empty.

Jump to

Keyboard shortcuts

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