Documentation
¶
Index ¶
- Constants
- func CalcHash(p string) (string, error)
- func CollecMdPaths(rootFolder string) ([]string, error)
- func ConfigPath(folder string) string
- func FolderIsSetUp(root string) (bool, error)
- func Load(root string) (*types.Config, error)
- func LoadRemotePosts(root string) (*types.RemotePosts, error)
- func RemoteConfigPath(folder string) string
- func SaveConfig(c types.StoredConfig, root string) error
- func SaveRemotePosts(c types.RemotePosts, root string) error
- type FolderState
- type RemotePostWithLocal
- type RemoteState
Constants ¶
View Source
const ConfigName = "posts.json"
View Source
const RemoteConfigName = "remote.json"
Variables ¶
This section is empty.
Functions ¶
func CollecMdPaths ¶
func ConfigPath ¶
func FolderIsSetUp ¶
func LoadRemotePosts ¶
func LoadRemotePosts(root string) (*types.RemotePosts, error)
func RemoteConfigPath ¶
func SaveConfig ¶
func SaveConfig(c types.StoredConfig, root string) error
func SaveRemotePosts ¶
func SaveRemotePosts(c types.RemotePosts, root string) error
Types ¶
type FolderState ¶
type FolderState struct { New map[string]*types.PostMeta Modified map[string]*types.PostMeta Deleted map[string]*types.PostMeta }
func ExamineFolder ¶
func ExamineFolder(cfg *types.Config, rootFolder string) (*FolderState, error)
type RemotePostWithLocal ¶
type RemotePostWithLocal struct { types.RemotePost Fname string }
type RemoteState ¶
type RemoteState struct { New []*types.RemotePost Modified []*RemotePostWithLocal }
func ExamineRemote ¶
func ExamineRemote(cfg *types.Config, remote *types.RemotePosts) (*RemoteState, error)
Click to show internal directories.
Click to hide internal directories.