config

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthEndpoints

type AuthEndpoints struct {
	Validate string
	Token    string
}

type Config

type Config struct {
	APIVersion     string
	DefaultTimeout time.Duration
	MaxRetries     int
	UserAgent      string
	Endpoints      Endpoints
}

Config holds the internal configuration settings

func NewConfig

func NewConfig() *Config

NewConfig returns a new configuration with default values

type Endpoints

type Endpoints struct {
	Auth  AuthEndpoints
	Users UsersEndpoints
}

Endpoints holds all API endpoint paths

type UsersEndpoints

type UsersEndpoints struct {
	Get    string
	Update string
	Delete string
}

Jump to

Keyboard shortcuts

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