Documentation ¶
Index ¶
Constants ¶
View Source
const ControllerName = "web"
ControllerName defines the name of the api controller used for dependency exception
Variables ¶
View Source
var ( // ServerPort specifies the port the web server is listening on ServerPort = flag.Int("server_port", 41100, "") )
Functions ¶
func NewController ¶
func NewController(ctx gousu.IContext) gousu.IController
NewController creates a new preinitialized instance of Controller
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the admin api controller
func (*Controller) Health ¶
func (c *Controller) Health() error
Health checks if the api server has thrown unresolvable internal errors
func (*Controller) Name ¶
func (c *Controller) Name() string
Name returns the name of the controller defined by ControllerName
func (*Controller) Start ¶
func (c *Controller) Start() error
Start starts the api server in a new go-func
type IController ¶
type IController interface { gousu.IController }
IController is the interface of the api controller
Source Files ¶
- web.go
- web_api_add_profile.go
- web_api_add_profile_bucket.go
- web_api_add_profile_bucket_object.go
- web_api_delete_profile.go
- web_api_delete_profile_bucket.go
- web_api_delete_profile_bucket_object.go
- web_api_download_profile_bucket_object.go
- web_api_get_profile_bucket_objects.go
- web_api_get_profile_bucket_stats.go
- web_api_get_profile_buckets.go
- web_api_get_profiles.go
- web_api_update_profile.go
- web_staticfile.go
Click to show internal directories.
Click to hide internal directories.