model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: GPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubSt

type GithubSt struct {
	SourceOwner   *string /* Name of the owner (user or org) of the repo to create the commit in. */
	SourceRepo    *string /* Name of repo to create the commit in. */
	CommitMessage *string /* Content of the commit message. */
	CommitBranch  *string /* Name of branch to create the commit in. If it does not already exists, it will be created using the `base-branch` parameter */
	BaseBranch    *string /* Name of branch to create the `commit-branch` from. */
	SourceFiles   *string /* Comma-separated list of files to commit and their location.
	The local file is separated by its target location by a semi-colon.
	If the file should be in the same location with the same name, you can just put the file name and omit the repetition.
	Example: README.md,main.go:github/examples/commitpr/main.go */
	AuthorName  *string         /* Name of the author of the commit */
	AuthorEmail *string         /* Email of the author of the commit. */
	Client      *github.Client  /* github client */
	Ctx         context.Context /* backgound context */
}

type History

type History struct {
	Id             string    `json:"id"`
	SyncId         string    `json:"syncId"`
	Target         string    `json:"target"`
	GitRootPath    string    `json:"gitRootPath"`
	SymlinkAddress string    `json:"symlink_address"`
	Type           string    `json:"fileType"`
	Status         string    `json:"status"`
	Owner          string    `json:"owner"`
	CreatedAt      time.Time `json:"createdAt"`
	UpdatedAt      time.Time `json:"updatedAt"`
	Repo           string    `json:"repo"`
	GithubUsername string    `json:"githubUsername"`
	RemarkMessage  string    `json:"remarkMessage"`
	Action         string    `json:"action"`
}

type Sync

type Sync struct {
	Id             string    `json:"id"`
	Target         string    `json:"target"`
	SymlinkAddress string    `json:"symlink_address"`
	GitRootPath    string    `json:"gitRootPath"`
	Type           string    `json:"fileType"`
	Status         string    `json:"status"`
	CreatedAt      time.Time `json:"createdAt"`
	Owner          string    `json:"owner"`
}

type User

type User struct {
	Id           string    `json:"id"`
	Owner        string    `json:"owner"`
	Cronjob      int       `json:"cronjob"`
	CreatedAt    time.Time `json:"createdAt"`
	TotalSync    int       `json:"totalSync"`
	Auth         bool      `json:"auth"`
	Token        string    `json:"token"`
	Repo         string    `json:"repo"`
	Github       string    `json:"github"`
	Branch       string    `json:"branch"`
	EmailAddress string    `json:"emailAddress"`
	Name         string    `json:"name"`
	Health       string    `json:"health"`
	UserDBPath   string    `json:"userDBPath"`
	SyncDBPath   string    `json:"syncDBPath"`
	SymlinkPath  string    `json:"symlinkPath"`
}

Jump to

Keyboard shortcuts

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