client

package
v0.0.0-...-348cdae Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 8 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 interface {
	GetResponses(users string) ([]*Response, error)
}

Client defines an interface for SpeakerDeck clients.

type RealHttpClient

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

RealHttpClient is a wrapper to make real HTTP requests.

func NewRealHttpClient

func NewRealHttpClient() *RealHttpClient

NewRealHttpClient creates a RealHttpClient.

type Response

type Response struct {
	Deck   string
	Author string
	Views  float64
	Stars  float64
}

Response represents provided data by SpeakerDeck.

type SpeakerDeckClient

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

SpeakerDeckClient allows you to fetch SpeakerDeck metrics.

func NewSpeakerDeckClient

func NewSpeakerDeckClient(client httpClient) *SpeakerDeckClient

NewSpeakerDeckClient creates a SpeakerDeckClient.

func (*SpeakerDeckClient) GetResponses

func (c *SpeakerDeckClient) GetResponses(users string) ([]*Response, error)

GetResponses returns responses for the given users.

Jump to

Keyboard shortcuts

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