githubutil

package
v0.0.0-...-c59394f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultValidator = NewGithubValidator()

DefaultValidator for a default export SQSValidator

Functions

func EmailForUserLogin

func EmailForUserLogin(login string) (string, error)

EmailForUserLogin gets the email of the given login

Types

type SQSValidator

type SQSValidator struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

SQSValidator auth by github stargazers

func NewGithubValidator

func NewGithubValidator() *SQSValidator

NewGithubValidator allocates and return a new SQSValidator

func (*SQSValidator) ContainsLogin

func (v *SQSValidator) ContainsLogin(login string) bool

ContainsLogin for checking the login

func (*SQSValidator) Start

func (v *SQSValidator) Start()

Start start the background services

func (*SQSValidator) Validate

func (v *SQSValidator) Validate(accessKey string, secretKey string) error

Validate validates use accessKey as a the github login, secretKey encrypted the data of accessKey.

Jump to

Keyboard shortcuts

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