client

package module
v0.0.0-...-1cea14b Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 7 Imported by: 1

README

api-client Build Status

!!! DEPRECATION NOTICE !!!

The development has been moved to a single repository https://github.com/aquilax/hranoprovod-cli

Client library for the API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	// contains filtered or unexported fields
}

APIClient the base client structure

func NewAPIClient

func NewAPIClient(options *Options) *APIClient

NewAPIClient returns new API Client

func (*APIClient) Search

func (ac *APIClient) Search(q string) (*shared.APINodeList, error)

Search searches the service for the provided query

type Options

type Options struct {
	BaseURL string
}

Options contains the option for the API Client

func NewDefaultOptions

func NewDefaultOptions() *Options

NewDefaultOptions returns the default options for the API Client

type URLParams

type URLParams map[string]string

URLParams is used to add reuqest params to the URL

Jump to

Keyboard shortcuts

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