wsdot

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 2 Imported by: 0

README

go-lib

A template repository for Go libraries.

Documentation

Index

Constants

View Source
const (
	ParamCamerasAccessCodeKey = "AccessCode"
	ParamFerriesAccessCodeKey = "apiaccesscode"
)

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
example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳