Documentation ¶
Index ¶
- Constants
- func BarsItemName(sym string, d date.Date) string
- func Exists(store Store) bool
- func ExtractDate(s string) (date.Date, bool)
- func Load(store Store) (models.Collection, error)
- func LoadFromDir(dir string) (models.Collection, error)
- func New(info *models.CollectionInfo, store Store) (models.Collection, error)
- type DateIndex
- type DateIndexEntry
- type DirStore
- func (store *DirStore) ItemNames() []string
- func (store *DirStore) LoadItem(name string) ([]byte, error)
- func (store *DirStore) MakeSubstore(name string) (Store, error)
- func (store *DirStore) StoreItem(name string, data []byte) error
- func (store *DirStore) Substore(name string) (Store, error)
- func (store *DirStore) SubstoreNames() []string
- type ErrNotDir
- type ErrNotFile
- type Store
Constants ¶
View Source
const ( BarsStoreName = "bars" InfoItemName = "info.json" )
Variables ¶
This section is empty.
Functions ¶
func LoadFromDir ¶
func LoadFromDir(dir string) (models.Collection, error)
func New ¶
func New(info *models.CollectionInfo, store Store) (models.Collection, error)
Types ¶
type DateIndex ¶
type DateIndex struct {
// contains filtered or unexported fields
}
func NewDateIndex ¶
type DateIndexEntry ¶
type DirStore ¶
type DirStore struct {
// contains filtered or unexported fields
}
func (*DirStore) SubstoreNames ¶
type ErrNotFile ¶
type ErrNotFile struct {
Path string
}
func (*ErrNotFile) Error ¶
func (err *ErrNotFile) Error() string
Click to show internal directories.
Click to hide internal directories.