identity

package
v0.0.0-...-cf86a0e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSource         = "gerrit"
	SortinghatAddEndpoint = "/v1.0/identities"
	ModeHTTP              = iota
	ModeHTTPS
)
View Source
const (
	DefaultStorage = "null"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo gerrit.AccountInfo

func (AccountInfo) Identify

func (p AccountInfo) Identify() *Identity

type ApprovalInfo

type ApprovalInfo gerrit.ApprovalInfo

func (ApprovalInfo) Identify

func (p ApprovalInfo) Identify() *Identity

type EmailInfo

type EmailInfo gerrit.EmailInfo

func (*EmailInfo) Identify

func (p *EmailInfo) Identify() *Identity

type GitPersonInfo

type GitPersonInfo gerrit.GitPersonInfo

func (*GitPersonInfo) Identify

func (p *GitPersonInfo) Identify() *Identity

type Identify

type Identify interface {
	Identify() Identity
}

type Identity

type Identity struct {
	Name     string
	Email    string
	Username string
}

type NullStorage

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

func (*NullStorage) Close

func (s *NullStorage) Close() error

func (*NullStorage) Init

func (s *NullStorage) Init(u *url.URL, c chan *Identity) error

func (*NullStorage) Listen

func (s *NullStorage) Listen()

type Storage

type Storage interface {
	Init(u *url.URL, c chan *Identity) error
	Listen()
	io.Closer
}

func GetStorage

func GetStorage(storage string, wg *sync.WaitGroup) (chan *Identity, Storage, error)

type StortinghatStorage

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

func (*StortinghatStorage) Close

func (s *StortinghatStorage) Close() error

func (*StortinghatStorage) Init

func (s *StortinghatStorage) Init(u *url.URL, c chan *Identity) error

func (*StortinghatStorage) Listen

func (s *StortinghatStorage) Listen()

Jump to

Keyboard shortcuts

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