controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGitConfig

func CheckGitConfig() bool

Types

type GitAPI

type GitAPI struct {
	*revel.Controller
	revmongo.MgoController
}

func (*GitAPI) CheckToken

func (c *GitAPI) CheckToken() revel.Result

before check authToken checkToken Token defined in header named as AuthToken or in params with AuthToken as query name

func (*GitAPI) Commit

func (c *GitAPI) Commit(modelName, id string) revel.Result

SaveToGit retrieve json data and save record to git if defined

func (*GitAPI) CommitContent

func (c *GitAPI) CommitContent(modelName, id, commitHash string) revel.Result

func (*GitAPI) History

func (c *GitAPI) History(modelName, id string) revel.Result

func (*GitAPI) IsSameHostRefer

func (c *GitAPI) IsSameHostRefer() bool

isSameHostRefer check request.Referer host same as request.Host

Jump to

Keyboard shortcuts

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