Documentation ¶
Overview ¶
Package datum is a wrapper used to interact with the datum API
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDatumAPITokenMissing is returned when the Datum API token is missing ErrAPITokenMissing = fmt.Errorf("token is required but not provided") )
Functions ¶
func NewDefaultClient ¶
func NewDefaultClient() (*datumclient.DatumClient, error)
NewDefaultClient creates a new datum client using the default configuration variables
Types ¶
type Config ¶
type Config struct { // Token is the token to use for the datum client Token string `json:"token" koanf:"token" default:""` }
Config is the configuration for the datum api
func NewDefaultConfig ¶
NewDefaultConfig returns a new Config with default values
func (*Config) NewClient ¶
func (c *Config) NewClient() (*datumclient.DatumClient, error)
NewClient creates a new datum client using the provided configuration variables
Click to show internal directories.
Click to hide internal directories.