services

package
v0.0.0-...-8af66ec Latest Latest
Warning

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

Go to latest
Published: May 27, 2017 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 Docker

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

Docker service name checker

func NewDocker

func NewDocker(logger logrus.FieldLogger) *Docker

NewDocker returns a new Docker checker

func (*Docker) Check

func (g *Docker) Check(name string) (bool, error)

Check implements the NameChecker interface

type Github

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

Github service name checker

func NewGithub

func NewGithub(token string, logger logrus.FieldLogger) *Github

NewGithub returns a new Github checker

func (*Github) Check

func (g *Github) Check(name string) (bool, error)

Check implements the NameChecker interface

type NameChecker

type NameChecker interface {
	Check(name string) (bool, error)
}

NameChecker checks the availability of a name Returns true when the name is available, false when unavailable, error if the status cannot be determined

type Twitter

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

Twitter service name checker

func NewTwitter

func NewTwitter(client *anaconda.TwitterApi, logger logrus.FieldLogger) *Twitter

NewTwitter returns a new Twitter checker

func (*Twitter) Check

func (t *Twitter) Check(name string) (bool, error)

Check implements the NameChecker interface

type Whoisxml

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

Whoisxml service name checker

func NewWhoisxml

func NewWhoisxml(tld string, username string, password string, logger logrus.FieldLogger) *Whoisxml

NewWhoisxml returns a new Whoisxml checker

func (*Whoisxml) Check

func (w *Whoisxml) Check(name string) (bool, error)

Check implements the NameChecker interface

Jump to

Keyboard shortcuts

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