Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParamUserName = "username" ParamPassword = "password" ParamReturnUrl = "return_url" )
View Source
const ( SourceRoutePrefix = "/source/" DestRoutePrefix = "/dest/" QueryRoute = "/query" LoginRoute = "/login" LoginIndexRoute = "/index" LoginIndexFullRoute = LoginRoute + LoginIndexRoute LoginSignInRoute = "/signin" LoginSignInFullRoute = LoginRoute + LoginSignInRoute WriteGroupRoute = "/w" PushRoute = "/push" PushFullRoute = WriteGroupRoute + PushRoute )
View Source
const ( DefaultAddrHttps = ":443" DefaultAddrHttp = ":80" SchemeHttp = "http" SchemeHttps = "https" DefaultPortHttp = 80 DefaultPortHttps = 443 )
View Source
const ( SessionName = "session_id" SessionUser = "user" )
View Source
const (
ResourceTemplatePath = "server/template/*"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultSessionStore ¶
func GenerateAddr ¶
GenerateAddr generate http or https address
func InitServerInfo ¶
func PrintAnonymousAccessWarning ¶
func PrintAnonymousAccessWarning()
Types ¶
type ApiResult ¶
type ApiResult struct { Code contract.Code `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
func NewApiResult ¶
func NewServerErrorResult ¶
func NewServerErrorResult() ApiResult
Click to show internal directories.
Click to hide internal directories.