internal

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogRequestFormat = "[%s '%s'] %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Status struct {
		Message    string `json:"message"`
		StatusCode int    `json:"status_code"`
	} `json:"status"`
}

type InternalClient

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

func NewInternalClient added in v0.2.0

func NewInternalClient(key string, debug bool) *InternalClient

Returns a new client using the API key provided

func (*InternalClient) SendRequest

func (c *InternalClient) SendRequest(method string, url string, endpoint string, v interface{}) error

Creates and sends a request using the parameters specified

type Logger added in v0.2.0

type Logger struct {
	Info  *log.Logger
	Warn  *log.Logger
	Error *log.Logger
}

func NewLogger added in v0.2.0

func NewLogger() *Logger

Returns a new Logger

Jump to

Keyboard shortcuts

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