contrib

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFactory

func WithFactory(ft Factory)

WithFactory set factory singleton

Types

type Contrib

type Contrib interface {
	GetHeadSHA1() (string, error)
	Sync(sha1 string, uploads []string, deletes []string) (uploaded []string, deleted []string, err error)
}

Contrib interface to syncer contrib

type Factory

type Factory func(options interface {
	gitter.ConfigReader
}) (Contrib, error)

Factory factory function to new contrib instance

func UseFactory

func UseFactory() Factory

UseFactory get factory singleton

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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