config

package
v1.0.0-beta-2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HttpClient *http.Client
	BaseURL    string
}

func NewClient

func NewClient(address string) *Client

Initializes a new Client struct

type Config

type Config struct {
	Client          *Client           // Http client for handling server requests
	Db              *database.Queries // Local database queries
	ConfigFP        string            // Config file path
	OperatingSystem string            // Local operating system
}

CLI config struct

func LoadConfig

func LoadConfig() (*Config, error)

Initializes configuration struct

func (*Config) MakeBasicRequest

func (c *Config) MakeBasicRequest(method, url, token string, data any) (*http.Response, error)

Structure a basic Http request with required data

Jump to

Keyboard shortcuts

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