datum

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func NewDefaultConfig() (*Config, error)

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

Jump to

Keyboard shortcuts

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