model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Title    string
	Contents string
}

type Config

type Config struct {
	EsaAPIKey string `envs:"PIGEON_ESA_KEY"`
	EsaTeam   string `envs:"PIGEON_ESA_TEAM"`

	GitBinPath string `envs:"PIGEON_GIT_BIN"`

	DiaryRepoURL  string `envs:"PIGEON_DIARY_REPO_URL"`
	ArticleDir    string `envs:"PIGEON_PROJECT_ARTICLE_DIR"`
	ImageStoreDir string `envs:"PIGEON_PROJECT_IMAGE_DIR"`
	ImageViewDir  string `envs:"PIGEON_PROJECT_IMAGE_VIEW_DIR"`

	// for GCS
	ProjectID string `envs:"PIGEON_PROJECT_ID"`
	BucketID  string `envs:"PIGEON_BUCKET_ID"`
}

type GitRepoDir

type GitRepoDir struct {
	ProjectRootDir string
	// contains filtered or unexported fields
}

func NewGitRepoDir

func NewGitRepoDir(projectRootDir, articleDir, imageDir, imageViewDir string) (dir *GitRepoDir, err error)

func (*GitRepoDir) ArticleDir

func (m *GitRepoDir) ArticleDir() (dir string)

func (*GitRepoDir) ImageDir

func (m *GitRepoDir) ImageDir() (dir string)

func (*GitRepoDir) RelativeArticleDir

func (m *GitRepoDir) RelativeArticleDir() (dir string)

func (*GitRepoDir) RelativeImageStoreDir

func (m *GitRepoDir) RelativeImageStoreDir() (dir string)

func (*GitRepoDir) RelativeImageViewDir

func (m *GitRepoDir) RelativeImageViewDir() (dir string)

Jump to

Keyboard shortcuts

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