store

package
v0.0.0-...-6a5243a Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

Memory is an in-memory store

func (*Memory) UpdateCommit

func (m *Memory) UpdateCommit(remote, branch, commit string) (string, error)

UpdateCommit updates the last known commit id of a branch

type Store

type Store interface {
	// UpdateCommit updates the last known commit id of a branch
	// and returns the previous one
	UpdateCommit(remote, branch, commit string) (string, error)
}

Store is an interface for fetching data from external source

func NewMemoryStore

func NewMemoryStore() Store

NewMemoryStore initializes an empty in-memory store

Jump to

Keyboard shortcuts

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