service

package
v0.0.0-...-1c5bec1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyClient = &http.Client{
	Timeout: time.Second * 10,
	Jar:     cJar,
}

Functions

This section is empty.

Types

type AhrefsServiceInterface

type AhrefsServiceInterface interface {
	GetMetricsData() (metrics_data *MetricsData, err error)
}

type AhrefsServiceStruct

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

func NewService

func NewService(email, password, project string) *AhrefsServiceStruct

func (*AhrefsServiceStruct) GetMetricsData

func (a *AhrefsServiceStruct) GetMetricsData() (metrics_data *MetricsData, err error)

type Country

type Country struct {
	Formated interface{} `json:"formated"`
	Delta    interface{} `json:"delta"`
}

type MetricsData

type MetricsData struct {
	OrganicKeywords  `json:"organic_keywords"`
	MovementRanges   []int `json:"movementRanges"`
	CurrentRanges    []int `json:"currentRanges"`
	Keywords_tracked int   `json:"keywords_tracked"`
	MovementTotal    `json:"movementTotal"`
}

type MovementTotal

type MovementTotal struct {
	Up   int `json:"up"`
	Down int `json:"down"`
}

type OrganicKeywords

type OrganicKeywords struct {
	All Country `json:"all"`
	Us  Country `json:"us"`
	Uk  Country `json:"uk"`
	Au  Country `json:"au"`
	Ca  Country `json:"ca"`
}

Jump to

Keyboard shortcuts

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