storage

package
v0.0.0-...-abe46e5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToRepository

func ConvertToRepository(data []Data) []apihandler.Repository

Types

type Data

type Data struct {
	Id   int
	Repo apihandler.Repository
}

func ConvertToStorageData

func ConvertToStorageData(repos []apihandler.Repository) []Data

type Storage

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

func New

func New(path string) *Storage

func (*Storage) Decode

func (s *Storage) Decode() ([]Data, error)

func (*Storage) Encode

func (s *Storage) Encode(data []Data) error

func (*Storage) GetDataById

func (s *Storage) GetDataById(id int) (*Data, error)

Jump to

Keyboard shortcuts

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