Documentation
¶
Index ¶
- func IsAlbumInBlacklist(album string) bool
- func IsPictureInBlacklist(pic string) bool
- func RemoveContents(dir string) error
- func ScanPath(path string, g_config *Config.GalleryConfiguration) (map[string]*Node, error)
- type Album
- type DS
- type DataStore
- type Directory
- type Exif
- type FileInfo
- type Instagram
- func (i *Instagram) Connect(username, password string) error
- func (i *Instagram) GetAllPosts() ([]goinsta.Item, error)
- func (i *Instagram) GetPost(id string) (goinsta.Item, error)
- func (i *Instagram) SavePost(original goinsta.Item) error
- func (i *Instagram) SetUpAlbum()
- func (i *Instagram) SyncFrom() error
- func (i *Instagram) UploadPhoto(path, caption string) error
- type Node
- type Picture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlbumInBlacklist ¶ added in v0.3.0
func IsPictureInBlacklist ¶ added in v0.3.0
func RemoveContents ¶ added in v0.2.1
Types ¶
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
var Cache *DataStore
func NewDataStore ¶
func NewDataStore(conf *galleryConfig.DatabaseConfiguration) *DataStore
func (DataStore) DoesTableExist ¶
func (*DataStore) RegisterData ¶
type Exif ¶
type Exif struct {
FStop float64 `json:"f_stop"`
FocalLength float64 `json:"focal_length"`
ShutterSpeed string `json:"shutter_speed"`
ISO string `json:"iso"`
Dimension string `json:"dimension"`
Camera string `json:"camera"`
LensModel string `json: lens_model`
DateTaken time.Time `json: date_taken`
}
type FileInfo ¶
type FileInfo struct {
Name string `json:"name"`
Size int64 `json:"size"`
Mode os.FileMode `json:"mode"`
ModTime time.Time `json:"mod_time"`
IsDir bool `json:"is_dir"`
}
FileInfo is a struct created from os.FileInfo interface for serialization.
type Instagram ¶ added in v0.3.1
type Instagram struct {
GalleryPath string
// contains filtered or unexported fields
}
var IG *Instagram
func (*Instagram) GetAllPosts ¶ added in v0.3.1
func (*Instagram) SetUpAlbum ¶ added in v0.3.1
func (i *Instagram) SetUpAlbum()
func (*Instagram) UploadPhoto ¶ added in v0.3.1
type Node ¶
type Node struct {
FullPath string `json:"path"`
Info FileInfo `json:"info"`
Children []*Node `json:"children"`
Parent *Node `json:"-"`
}
Node represents a node in a directory tree.
type Picture ¶
type Picture struct {
Id string `json:"id"`
Name string `json:"name"`
Caption string `json:"caption"`
Path string `json:"path"`
FormatTime string `json:"format_time"`
Album string `json:"album"`
Exif Exif `json:"exif"`
PostedToIG bool `json:"posted_to_IG"`
}
func (*Picture) CreateExif ¶
func (u *Picture) CreateExif()
Click to show internal directories.
Click to hide internal directories.