Documentation ¶
Index ¶
- Constants
- Variables
- func AddRewrite(cb ice.Any)
- func ApiAction(arg ...string) ice.Actions
- func CookieName(url string) string
- func GoToast(m *ice.Message, title string, cb func(toast func(string, int, int)))
- func MergeLink(m *ice.Message, url string, arg ...ice.Any) string
- func MergePod(m *ice.Message, pod string, arg ...ice.Any) string
- func MergeURL2(m *ice.Message, url string, arg ...ice.Any) string
- func OptionAgentIs(m *ice.Message, arg ...string) bool
- func OptionUserWeb(m *ice.Message) *url.URL
- func P(arg ...string) string
- func PP(arg ...string) string
- func PushNotice(m *ice.Message, arg ...ice.Any)
- func PushNoticeGrow(m *ice.Message, arg ...ice.Any)
- func PushNoticeRefresh(m *ice.Message, arg ...ice.Any)
- func PushNoticeToast(m *ice.Message, arg ...ice.Any)
- func PushPodCmd(m *ice.Message, cmd string, arg ...string)
- func PushStream(m *ice.Message)
- func Render(msg *ice.Message, cmd string, args ...ice.Any)
- func RenderCmd(m *ice.Message, index string, args ...ice.Any)
- func RenderCookie(msg *ice.Message, value string, arg ...string)
- func RenderDownload(msg *ice.Message, arg ...ice.Any)
- func RenderHeader(w http.ResponseWriter, key, value string)
- func RenderIndex(m *ice.Message, repos string, file ...string) *ice.Message
- func RenderRedirect(msg *ice.Message, arg ...ice.Any)
- func RenderRefresh(msg *ice.Message, arg ...string)
- func RenderResult(msg *ice.Message, arg ...ice.Any)
- func RenderStatus(w http.ResponseWriter, code int, text string)
- func RenderType(w http.ResponseWriter, name, mime string)
- func RenderWebsite(m *ice.Message, pod string, dir string, arg ...string) *ice.Message
- func Space(m *ice.Message, arg ice.Any) []string
- func SpideDelete(m *ice.Message, arg ...ice.Any) ice.Any
- func SpideGet(m *ice.Message, arg ...ice.Any) ice.Any
- func SpidePost(m *ice.Message, arg ...ice.Any) ice.Any
- func SpidePut(m *ice.Message, arg ...ice.Any) ice.Any
- func Toast(m *ice.Message, text string, arg ...ice.Any)
- func Toast30s(m *ice.Message, text string, arg ...ice.Any)
- func Toast3s(m *ice.Message, text string, arg ...ice.Any)
- func ToastFailure(m *ice.Message, arg ...ice.Any)
- func ToastProcess(m *ice.Message, arg ...ice.Any) func()
- func ToastRestart(m *ice.Message, arg ...ice.Any)
- func ToastSuccess(m *ice.Message, arg ...ice.Any)
- func Upload(m *ice.Message) []string
- type Frame
- func (frame *Frame) Begin(m *ice.Message, arg ...string) ice.Server
- func (frame *Frame) Close(m *ice.Message, arg ...string) bool
- func (frame *Frame) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (frame *Frame) Spawn(m *ice.Message, c *ice.Context, arg ...string) ice.Server
- func (frame *Frame) Start(m *ice.Message, arg ...string) bool
Constants ¶
View Source
const ( WATCH = "watch" CATCH = "catch" WRITE = "write" UPLOAD = "upload" DOWNLOAD = "download" UPLOAD_WATCH = "upload_watch" )
View Source
const ( DREAM_CREATE = "dream.create" DREAM_START = "dream.start" DREAM_STOP = "dream.stop" )
View Source
const ( COOKIE = "cookie" STATUS = "status" )
View Source
const ( WEB_LOGIN = "_login" SSO = "sso" DOMAIN = "domain" INDEX = "index" )
View Source
const ( TOPIC = "topic" LOGIN = "login" RIVER = "river" STORM = "storm" FIELD = "field" SHARE_TOAST = "/share/toast/" SHARE_CACHE = "/share/cache/" SHARE_LOCAL = "/share/local/" SHARE_PROXY = "/share/proxy/" SHARE_REPOS = "/share/repos/" SHARE_LOCAL_AVATAR = "/share/local/avatar/" SHARE_LOCAL_BACKGROUND = "/share/local/background/" )
View Source
const ( CHROME = "chrome" FRIEND = "friend" MASTER = "master" MYSELF = "myself" SERVER = "server" WORKER = "worker" )
View Source
const ( BUFFER = "buffer" REDIAL = "redial" TIMEOUT = "timeout" SPACE_OPEN = "space.open" SPACE_CLOSE = "space.close" SPACE_START = "space.start" SPACE_STOP = "space.stop" )
View Source
const ( // 缓存方法 SPIDE_RAW = "raw" SPIDE_MSG = "msg" SPIDE_SAVE = "save" SPIDE_CACHE = "cache" // 请求方法 SPIDE_GET = "GET" SPIDE_PUT = "PUT" SPIDE_POST = "POST" SPIDE_DELETE = "DELETE" // 请求参数 SPIDE_BODY = "body" SPIDE_FORM = "form" SPIDE_PART = "part" SPIDE_JSON = "json" SPIDE_DATA = "data" SPIDE_FILE = "file" // 响应数据 SPIDE_RES = "content_data" // 请求头 Bearer = "Bearer" Authorization = "Authorization" ContentType = "Content-Type" ContentLength = "Content-Length" UserAgent = "User-Agent" Referer = "Referer" Accept = "Accept" // 数据格式 ContentFORM = "application/x-www-form-urlencoded" ContentJSON = "application/json" ContentPNG = "image/png" ContentHTML = "text/html" ContentCSS = "text/css" )
View Source
const ( SPIDE_CLIENT = "client" SPIDE_METHOD = "method" SPIDE_HEADER = "header" SPIDE_COOKIE = "cookie" CLIENT_NAME = "client.name" CLIENT_METHOD = "client.method" CLIENT_TIMEOUT = "client.timeout" CLIENT_URL = "client.url" LOGHEADERS = "logheaders" FORM = "form" ADDRESS = "address" REQUEST = "request" RESPONSE = "response" MERGE = "merge" SUBMIT = "submit" )
View Source
const ( SERVE_START = "serve.start" SERVE_STOP = "serve.stop" WEBSITE = "website" )
View Source
const BROAD = "broad"
View Source
const CACHE = "cache"
View Source
const DREAM = "dream"
View Source
const ROUTE = "route"
View Source
const SERVE = "serve"
View Source
const SHARE = "share"
View Source
const SPACE = "space"
View Source
const SPIDE = "spide"
View Source
const WEB = "web"
Variables ¶
Functions ¶
func GoToast ¶ added in v1.3.0
func RenderHeader ¶ added in v0.4.1
func RenderHeader(w http.ResponseWriter, key, value string)
func RenderIndex ¶ added in v1.3.0
func RenderStatus ¶
func RenderStatus(w http.ResponseWriter, code int, text string)
func RenderType ¶
func RenderType(w http.ResponseWriter, name, mime string)
func RenderWebsite ¶ added in v1.3.0
Types ¶
Click to show internal directories.
Click to hide internal directories.