Documentation ¶
Index ¶
- Constants
- func Account(w http.ResponseWriter, r *http.Request)
- func ApiCounter(w http.ResponseWriter, r *http.Request)
- func ApiCounterAdd(w http.ResponseWriter, r *http.Request)
- func ApiCounterFrontend(w http.ResponseWriter, r *http.Request)
- func ApiCounterList(w http.ResponseWriter, r *http.Request)
- func ApiCounterListPagination(w http.ResponseWriter, r *http.Request)
- func ApiCounterStart(w http.ResponseWriter, r *http.Request)
- func ApiCounterStartFrontend(w http.ResponseWriter, r *http.Request)
- func ApiCounterStop(w http.ResponseWriter, r *http.Request)
- func ApiCounterStopFrontend(w http.ResponseWriter, r *http.Request)
- func ApiDeviceList(w http.ResponseWriter, r *http.Request)
- func ApiEvent(w http.ResponseWriter, r *http.Request)
- func ApiEventList(w http.ResponseWriter, r *http.Request)
- func ApiLogin(w http.ResponseWriter, r *http.Request)
- func ApiNewDevice(w http.ResponseWriter, r *http.Request)
- func ApiNewProject(w http.ResponseWriter, r *http.Request)
- func ApiNewUser(w http.ResponseWriter, r *http.Request)
- func ApiNote(w http.ResponseWriter, r *http.Request)
- func ApiNoteDelete(w http.ResponseWriter, r *http.Request)
- func ApiNoteEdit(w http.ResponseWriter, r *http.Request)
- func ApiNoteList(w http.ResponseWriter, r *http.Request)
- func ApiNoteNew(w http.ResponseWriter, r *http.Request)
- func ApiProjectList(w http.ResponseWriter, r *http.Request)
- func ApiPushRegister(w http.ResponseWriter, r *http.Request)
- func ApiTaskCreate(w http.ResponseWriter, r *http.Request)
- func ApiTaskEdit(w http.ResponseWriter, r *http.Request)
- func ApiTaskList(w http.ResponseWriter, r *http.Request)
- func ApiUserList(w http.ResponseWriter, r *http.Request)
- func CheckApiAuth(w http.ResponseWriter, r *http.Request) (ok bool, user model.User)
- func CheckAuth(w http.ResponseWriter, r *http.Request) (ok bool, user model.User)
- func CountLog(w http.ResponseWriter, r *http.Request)
- func DeviceApiCheckAuth(w http.ResponseWriter, r *http.Request) (ok bool, device model.Device)
- func FilePaginate(w http.ResponseWriter, r *http.Request)
- func FileSimilar(w http.ResponseWriter, r *http.Request)
- func FullImg(w http.ResponseWriter, r *http.Request)
- func GitlabWhIssueToDiscord(w http.ResponseWriter, r *http.Request)
- func Index(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func OneFile(w http.ResponseWriter, r *http.Request)
- func Refresh(w http.ResponseWriter, r *http.Request)
- func Register(w http.ResponseWriter, r *http.Request)
- func Scan(w http.ResponseWriter, r *http.Request)
- func SendDiscordWebhook(bodyRaw DiscordWebhook, discordWhUrl string, w http.ResponseWriter)
- func StartWebInterface()
- func TagAdd(w http.ResponseWriter, r *http.Request)
- func TagDelete(w http.ResponseWriter, r *http.Request)
- func TagList(w http.ResponseWriter, r *http.Request)
- func TagListForFiles(w http.ResponseWriter, r *http.Request)
- func Thumb(w http.ResponseWriter, r *http.Request)
- func WebhookGitlab(w http.ResponseWriter, r *http.Request)
- type AccountPage
- type ApiLoginRequest
- type ApiLoginResponse
- type ApiNewDeviceRequest
- type ApiNewProjectRequest
- type ApiNewUserRequest
- type Assignee
- type Changes
- type CountLogPage
- type CounterApi
- type CounterApiPagination
- type CounterLogApi
- type DiscordWebhook
- type DiscordWhEmbed
- type DiscordWhEmbedAuthor
- type DiscordWhFields
- type EditTaskApiReq
- type GitlabIssueWebhook
- type IncomingEvent
- type Label
- type Labels
- type LoginPage
- type NewCounterRequest
- type NewTaskApiReq
- type NoteApiResponse
- type ObjectAttributes
- type OneNoteApi
- type PaginateFileResponse
- type PaginateQueryRequest
- type Project
- type PushRegisterRequest
- type RegisterPage
- type Repository
- type ScanReq
- type TagRequest
- type TaskApiResponse
- type TasksPage
- type UpdatedAt
- type UpdatedByID
- type UserListRes
Constants ¶
View Source
const (
STATIC_DIR = "/new/"
)
Variables ¶
This section is empty.
Functions ¶
func ApiCounter ¶
func ApiCounter(w http.ResponseWriter, r *http.Request)
func ApiCounterAdd ¶
func ApiCounterAdd(w http.ResponseWriter, r *http.Request)
func ApiCounterFrontend ¶
func ApiCounterFrontend(w http.ResponseWriter, r *http.Request)
func ApiCounterList ¶
func ApiCounterList(w http.ResponseWriter, r *http.Request)
func ApiCounterListPagination ¶
func ApiCounterListPagination(w http.ResponseWriter, r *http.Request)
func ApiCounterStart ¶
func ApiCounterStart(w http.ResponseWriter, r *http.Request)
func ApiCounterStartFrontend ¶
func ApiCounterStartFrontend(w http.ResponseWriter, r *http.Request)
func ApiCounterStop ¶
func ApiCounterStop(w http.ResponseWriter, r *http.Request)
func ApiCounterStopFrontend ¶
func ApiCounterStopFrontend(w http.ResponseWriter, r *http.Request)
func ApiDeviceList ¶
func ApiDeviceList(w http.ResponseWriter, r *http.Request)
func ApiEventList ¶
func ApiEventList(w http.ResponseWriter, r *http.Request)
func ApiNewDevice ¶
func ApiNewDevice(w http.ResponseWriter, r *http.Request)
func ApiNewProject ¶
func ApiNewProject(w http.ResponseWriter, r *http.Request)
func ApiNewUser ¶
func ApiNewUser(w http.ResponseWriter, r *http.Request)
func ApiNoteDelete ¶
func ApiNoteDelete(w http.ResponseWriter, r *http.Request)
func ApiNoteEdit ¶
func ApiNoteEdit(w http.ResponseWriter, r *http.Request)
func ApiNoteList ¶
func ApiNoteList(w http.ResponseWriter, r *http.Request)
func ApiNoteNew ¶
func ApiNoteNew(w http.ResponseWriter, r *http.Request)
func ApiProjectList ¶
func ApiProjectList(w http.ResponseWriter, r *http.Request)
func ApiPushRegister ¶
func ApiPushRegister(w http.ResponseWriter, r *http.Request)
func ApiTaskCreate ¶
func ApiTaskCreate(w http.ResponseWriter, r *http.Request)
func ApiTaskEdit ¶
func ApiTaskEdit(w http.ResponseWriter, r *http.Request)
func ApiTaskList ¶
func ApiTaskList(w http.ResponseWriter, r *http.Request)
func ApiUserList ¶
func ApiUserList(w http.ResponseWriter, r *http.Request)
func CheckApiAuth ¶
func DeviceApiCheckAuth ¶
func FilePaginate ¶
func FilePaginate(w http.ResponseWriter, r *http.Request)
func FileSimilar ¶
func FileSimilar(w http.ResponseWriter, r *http.Request)
func GitlabWhIssueToDiscord ¶
func GitlabWhIssueToDiscord(w http.ResponseWriter, r *http.Request)
func SendDiscordWebhook ¶
func SendDiscordWebhook(bodyRaw DiscordWebhook, discordWhUrl string, w http.ResponseWriter)
func StartWebInterface ¶
func StartWebInterface()
func TagListForFiles ¶
func TagListForFiles(w http.ResponseWriter, r *http.Request)
separate endpoint for tags allows to construct simpler and faster SQL queries for images
func WebhookGitlab ¶
func WebhookGitlab(w http.ResponseWriter, r *http.Request)
Types ¶
type AccountPage ¶
type ApiLoginRequest ¶
type ApiLoginResponse ¶
type ApiLoginResponse struct {
Token string `json:"token"`
}
type ApiNewDeviceRequest ¶
type ApiNewDeviceRequest struct {
Name string `json:"name"`
}
type ApiNewProjectRequest ¶
type ApiNewUserRequest ¶
type Changes ¶
type Changes struct { UpdatedByID UpdatedByID `json:"updated_by_id"` UpdatedAt UpdatedAt `json:"updated_at"` Labels Labels `json:"labels"` }
type CountLogPage ¶
type CounterApi ¶
type CounterApi struct { Id uint `json:"id"` Name string `json:"name"` Tags []string `json:"tags"` Seconds uint `json:"seconds"` SecondsF string `json:"secondsF"` InProgress bool `json:"inProgress"` Stats model.CounterList `json:"stats"` Sessions []CounterLogApi `json:"sessions"` }
type CounterApiPagination ¶
type CounterApiPagination struct { Pagination struct { AllRecords int `json:"allRecords"` } `json:"pagination"` Counters []CounterApi `json:"counters"` }
type CounterLogApi ¶
type DiscordWebhook ¶
type DiscordWebhook struct { Content string `json:"content"` Username string `json:"username"` Embeds []DiscordWhEmbed `json:"embeds"` }
https://discordapp.com/developers/docs/resources/webhook https://discordapp.com/developers/docs/resources/channel#embed-object-embed-author-structure
type DiscordWhEmbed ¶
type DiscordWhEmbed struct { Title string `json:"title"` Description string `json:"description"` Url string `json:"url"` // https://www.spycolor.com/ Color int `json:"color"` Author DiscordWhEmbedAuthor `json:"author"` Fields []DiscordWhFields `json:"fields"` }
type DiscordWhEmbedAuthor ¶
type DiscordWhFields ¶
type EditTaskApiReq ¶
type GitlabIssueWebhook ¶
type GitlabIssueWebhook struct { ObjectKind string `json:"object_kind"` User Assignee `json:"user"` Project Project `json:"project"` Repository Repository `json:"repository"` ObjectAttributes ObjectAttributes `json:"object_attributes"` Assignees []Assignee `json:"assignees"` Assignee Assignee `json:"assignee"` Labels []Label `json:"labels"` Changes Changes `json:"changes"` }
type IncomingEvent ¶
type IncomingEvent struct { Status struct { Screen string `json:"scr"` Battery uint `json:"bat"` } `json:"stat"` Music struct { Track string `json:"trk"` Artist string `json:"art"` } `json:"music"` Version uint `json:"v"` Token string `json:"tok"` }
Android
type Label ¶
type Label struct { ID int64 `json:"id"` Title string `json:"title"` Color string `json:"color"` ProjectID int64 `json:"project_id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Template bool `json:"template"` Description string `json:"description"` Type string `json:"type"` GroupID int64 `json:"group_id"` }
type NewCounterRequest ¶
type NewTaskApiReq ¶
type NewTaskApiReq struct {
Title string `json:"title"`
}
type NoteApiResponse ¶
type ObjectAttributes ¶
type ObjectAttributes struct { ID int64 `json:"id"` Title string `json:"title"` AssigneeIDS []int64 `json:"assignee_ids"` AssigneeID int64 `json:"assignee_id"` AuthorID int64 `json:"author_id"` ProjectID int64 `json:"project_id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Position int64 `json:"position"` BranchName interface{} `json:"branch_name"` Description string `json:"description"` MilestoneID interface{} `json:"milestone_id"` State string `json:"state"` Iid int64 `json:"iid"` URL string `json:"url"` Action string `json:"action"` }
type OneNoteApi ¶
type OneNoteApi struct { Id uint `json:"id"` Title string `json:"title"` Body string `json:"body"` Tags string `json:"tags"` CreatedAt *time.Time `json:"createdAt"` }
FIXME for note edit
type PaginateFileResponse ¶
type PaginateQueryRequest ¶
type PaginateQueryRequest struct {
Query string `json:"q"`
}
type Project ¶
type Project struct { ID int64 `json:"id"` Name string `json:"name"` Description string `json:"description"` WebURL string `json:"web_url"` AvatarURL interface{} `json:"avatar_url"` GitSSHURL string `json:"git_ssh_url"` GitHTTPURL string `json:"git_http_url"` Namespace string `json:"namespace"` VisibilityLevel int64 `json:"visibility_level"` PathWithNamespace string `json:"path_with_namespace"` DefaultBranch string `json:"default_branch"` Homepage string `json:"homepage"` URL string `json:"url"` SSHURL string `json:"ssh_url"` HTTPURL string `json:"http_url"` }
type PushRegisterRequest ¶
type PushRegisterRequest struct {
PushToken string `json:"pushToken"`
}
type Repository ¶
type TagRequest ¶
type TagRequest struct {
Tag string `json:"tag"`
}
type TaskApiResponse ¶
type UpdatedByID ¶
type UpdatedByID struct { Previous interface{} `json:"previous"` Current int64 `json:"current"` }
type UserListRes ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.