README ¶
Package information
Iris control is a plugin which gives you a little control over your Iris station.
iris.Plugins.Add(iriscontrol.New(PORT, AUTHENTICATED_USERS))
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/plugin/iriscontrol"
)
func main() {
iris.Plugins.Add(iriscontrol.New(9090, map[string]string{
"1": "1",
"irisusername2": "irispassowrd2",
}))
iris.Get("/", func(ctx *iris.Context) {
ctx.Write("Root path from server")
})
iris.Get("/something", func(ctx *iris.Context) {
ctx.Write("Something path from server")
})
// Iris control will listen on mydomain.com:9090
iris.Listen("mydomain.com:8080")
}
Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "Iris Control"
Name "Iris Control"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IrisControl ¶
type IrisControl interface{}
IrisControl is the interface which the iriscontrol should implements it's empty for now because no need any public API
Click to show internal directories.
Click to hide internal directories.