api

package
v0.0.0-...-c99865c Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 5 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 {
	GetColor(username string) (error, []models.GitHubLang)
	CallApi(username string) (error, *models.Query)
}

type GitHub

type GitHub struct {
	Client Client
}

func (*GitHub) DoCallApi

func (github *GitHub) DoCallApi(username string) (error, *models.Query)

func (*GitHub) DoGetColor

func (github *GitHub) DoGetColor(username string) (error, []models.GitHubLang)

type GithubClientImpl

type GithubClientImpl struct {
}

func (*GithubClientImpl) CallApi

func (client *GithubClientImpl) CallApi(username string) (error, *models.Query)

func (*GithubClientImpl) GetColor

func (client *GithubClientImpl) GetColor(username string) (error, []models.GitHubLang)

Directories

Path Synopsis
Package mock_api is a generated GoMock package.
Package mock_api is a generated GoMock package.

Jump to

Keyboard shortcuts

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