storage

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStorage = "null"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSet

type ChangeSet struct {
	Change   *gerrit.ChangeInfo
	Comments *map[string]gerrit.CommentInfo
	Files    *map[string]gerrit.FileInfo
}

type MySQLStorage

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

func (*MySQLStorage) Close

func (s *MySQLStorage) Close() error

func (*MySQLStorage) Init

func (s *MySQLStorage) Init(u *url.URL, c chan *ChangeSet) error

func (*MySQLStorage) Listen

func (s *MySQLStorage) Listen()

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 *ChangeSet) error

func (*NullStorage) Listen

func (s *NullStorage) Listen()

type Project

type Project gerrit.ProjectInfo

type Storage

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

func GetStorage

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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