wsdot

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 2 Imported by: 0

README

go-lib

A template repository for Go libraries.

Documentation

Index

Constants

View Source
const (
	ParamAccessCode = "AccessCode"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WSDOTClient

type WSDOTClient struct {
	Client *http.Client
	ApiKey string
}

func NewWSDOTClient

func NewWSDOTClient(options ...WSDOTClientOption) (*WSDOTClient, error)

type WSDOTClientError

type WSDOTClientError error
var (
	ErrInvalidAPIKey WSDOTClientError = errors.New("invalid api key")
	ErrNoClient      WSDOTClientError = errors.New("no client")
)

type WSDOTClientOption

type WSDOTClientOption func(*WSDOTClient)

func WithAPIKey

func WithAPIKey(apiKey string) WSDOTClientOption

func WithHTTPClient

func WithHTTPClient(client *http.Client) WSDOTClientOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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