api

package
v0.0.0-...-abd2dae Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPGenericSuccess          = 200
	HTTPCodeBadRequest          = 400
	HTTPForbiddenResource       = 403
	HTTPCodeInternalServerError = 500
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Cfg    *config.MainConfig
	Metric *Metric
}

API is the api struct

func New

func New(this *API) *API

New is the api initializer

func (*API) Accounts

Accounts handle accounts endpoint

func (*API) Customers

Customers handle customers endpoint

func (*API) Register

func (a *API) Register()

Register will register the api structure

type Metric

type Metric struct {
	DDogSvcMetric metric.MetricInterface
}

Jump to

Keyboard shortcuts

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