Documentation ¶
Index ¶
- Constants
- Variables
- func Set(c *Config) error
- type Config
- type Github
- func (g *Github) AfterConfigGithub(c *Config)
- func (g *Github) Api() string
- func (g *Github) Clone() error
- func (g *Github) Done() int
- func (g *Github) ForcePull() error
- func (g *Github) Git() string
- func (g *Github) ReferenceName() plumbing.ReferenceName
- func (g *Github) RemoteName() plumbing.ReferenceName
- func (g Github) String() string
- func (g *Github) SyncRepository() error
- type Path
- type Permission
- type Server
Constants ¶
View Source
const VERSION = "v0.15.0"
Variables ¶
View Source
var ConfigPath string = "./config.yml"
Functions ¶
Types ¶
type Config ¶
type Config struct { // 路径 Path Path `yaml:"path"` // Github 主页 Github Github `yaml:"github"` // 服务器参数 Server Server `yaml:"server"` // 权限组 Permission Permission `yaml:"permission"` // 额外参数 Extra map[string]string `yaml:"extra"` }
webhook 配置
var Global *Config
func (*Config) BeforeDefault ¶
type Github ¶
type Github struct { Folder string `yaml:"-"` Username string `yaml:"username" default:"Drelf2018"` Repository string `yaml:"repository" default:"gin.nana7mi.link"` Branche string `yaml:"branche" default:"gh-pages"` // contains filtered or unexported fields }
func (*Github) AfterConfigGithub ¶
func (*Github) ReferenceName ¶
func (g *Github) ReferenceName() plumbing.ReferenceName
func (*Github) RemoteName ¶
func (g *Github) RemoteName() plumbing.ReferenceName
func (*Github) SyncRepository ¶
type Path ¶
type Path struct { Root string `yaml:"root" default:"resource"` Log string `yaml:"log" default:".log" join:"Root"` Views string `yaml:"views" default:"views" join:"Root"` UserDB string `yaml:"userDB" default:"users.db" join:"Root"` Public string `yaml:"public" default:"public" join:"Root"` PostDB string `yaml:"postDB" default:"posts.db" join:"Public"` FullPath *Path `yaml:"-" initial:"-"` }
func (*Path) AfterDefault ¶
type Permission ¶
Click to show internal directories.
Click to hide internal directories.