Documentation ¶
Index ¶
- Constants
- func DebugLoggingFilter(rq *restful.Request, rs *restful.Response, ch *restful.FilterChain)
- type BasicAuthService
- type ImageWebService
- type ItemWebService
- func (s *ItemWebService) AttachImage(req *restful.Request, res *restful.Response)
- func (s *ItemWebService) CreateItem(request *restful.Request, response *restful.Response)
- func (s *ItemWebService) DeleteItem(request *restful.Request, response *restful.Response)
- func (s *ItemWebService) GetItemById(request *restful.Request, response *restful.Response)
- func (s *ItemWebService) GetItemLog(request *restful.Request, response *restful.Response)
- func (s *ItemWebService) ListItem(request *restful.Request, response *restful.Response)
- func (s *ItemWebService) NotAnEasterEgg(req *restful.Request, res *restful.Response)
- func (s *ItemWebService) RemoveImage(req *restful.Request, res *restful.Response)
- func (s *ItemWebService) UpdateItem(request *restful.Request, response *restful.Response)
- type PolicyWebService
- func (p *PolicyWebService) CreatePolicy(request *restful.Request, response *restful.Response)
- func (p *PolicyWebService) DeletePolicy(request *restful.Request, response *restful.Response)
- func (p *PolicyWebService) GetPolicyByName(request *restful.Request, response *restful.Response)
- func (p *PolicyWebService) GetPolicyLog(request *restful.Request, response *restful.Response)
- func (p *PolicyWebService) ListPolicy(request *restful.Request, response *restful.Response)
- func (p *PolicyWebService) UpdatePolicy(request *restful.Request, response *restful.Response)
- type UpdateService
- type UserWebService
- func (p *UserWebService) CreateUser(request *restful.Request, response *restful.Response)
- func (p *UserWebService) DeleteUser(request *restful.Request, response *restful.Response)
- func (p *UserWebService) GetUserByName(request *restful.Request, response *restful.Response)
- func (p *UserWebService) GetUserLogByName(request *restful.Request, response *restful.Response)
- func (p *UserWebService) ListUser(request *restful.Request, response *restful.Response)
- func (p *UserWebService) UpdateUser(request *restful.Request, response *restful.Response)
Constants ¶
View Source
const ( ERROR_INVALID_ID = "Error: Invalid ID" ERROR_STMT_PREPARE = "Error: Statement prepare failed" ERROR_INVALID_INPUT = "Error: Invalid Input" ERROR_INTERNAL = "Error: Internal Server Error" ERROR_INSERT = "Error: DB Insert failed" ERROR_QUERY = "Error: DB Query failed" )
Variables ¶
This section is empty.
Functions ¶
func DebugLoggingFilter ¶
func DebugLoggingFilter(rq *restful.Request, rs *restful.Response, ch *restful.FilterChain)
Types ¶
type BasicAuthService ¶
type BasicAuthService struct {
// contains filtered or unexported fields
}
func NewBasicAuthService ¶
func NewBasicAuthService(d *db.UserDBProvider) *BasicAuthService
func (*BasicAuthService) Auth ¶
func (s *BasicAuthService) Auth(request *restful.Request, response *restful.Response, chain *restful.FilterChain)
type ImageWebService ¶
type ImageWebService struct { S *restful.WebService // contains filtered or unexported fields }
func NewImageService ¶
func NewImageService(d *db.ImageDBProvider) *ImageWebService
func (*ImageWebService) GetImageById ¶
func (p *ImageWebService) GetImageById(req *restful.Request, res *restful.Response)
func (*ImageWebService) GetImageMetadataById ¶
func (p *ImageWebService) GetImageMetadataById(req *restful.Request, res *restful.Response)
type ItemWebService ¶
type ItemWebService struct { S *restful.WebService // contains filtered or unexported fields }
func NewItemWebService ¶
func NewItemWebService(d *db.ItemDBProvider, i *db.ImageDBProvider, a *BasicAuthService, u *UpdateService) *ItemWebService
func (*ItemWebService) AttachImage ¶
func (s *ItemWebService) AttachImage(req *restful.Request, res *restful.Response)
func (*ItemWebService) CreateItem ¶
func (s *ItemWebService) CreateItem(request *restful.Request, response *restful.Response)
func (*ItemWebService) DeleteItem ¶
func (s *ItemWebService) DeleteItem(request *restful.Request, response *restful.Response)
func (*ItemWebService) GetItemById ¶
func (s *ItemWebService) GetItemById(request *restful.Request, response *restful.Response)
func (*ItemWebService) GetItemLog ¶
func (s *ItemWebService) GetItemLog(request *restful.Request, response *restful.Response)
func (*ItemWebService) ListItem ¶
func (s *ItemWebService) ListItem(request *restful.Request, response *restful.Response)
func (*ItemWebService) NotAnEasterEgg ¶
func (s *ItemWebService) NotAnEasterEgg(req *restful.Request, res *restful.Response)
func (*ItemWebService) RemoveImage ¶
func (s *ItemWebService) RemoveImage(req *restful.Request, res *restful.Response)
func (*ItemWebService) UpdateItem ¶
func (s *ItemWebService) UpdateItem(request *restful.Request, response *restful.Response)
type PolicyWebService ¶
type PolicyWebService struct { S *restful.WebService // contains filtered or unexported fields }
func NewPolicyService ¶
func NewPolicyService(d *db.PolicyDBProvider, a *BasicAuthService, u *UpdateService) *PolicyWebService
func (*PolicyWebService) CreatePolicy ¶
func (p *PolicyWebService) CreatePolicy(request *restful.Request, response *restful.Response)
func (*PolicyWebService) DeletePolicy ¶
func (p *PolicyWebService) DeletePolicy(request *restful.Request, response *restful.Response)
func (*PolicyWebService) GetPolicyByName ¶
func (p *PolicyWebService) GetPolicyByName(request *restful.Request, response *restful.Response)
func (*PolicyWebService) GetPolicyLog ¶
func (p *PolicyWebService) GetPolicyLog(request *restful.Request, response *restful.Response)
func (*PolicyWebService) ListPolicy ¶
func (p *PolicyWebService) ListPolicy(request *restful.Request, response *restful.Response)
func (*PolicyWebService) UpdatePolicy ¶
func (p *PolicyWebService) UpdatePolicy(request *restful.Request, response *restful.Response)
type UpdateService ¶
type UpdateService struct { Router *golem.Router S *restful.WebService // contains filtered or unexported fields }
func NewUpdateService ¶
func NewUpdateService() *UpdateService
func (*UpdateService) PushUpdate ¶
func (u *UpdateService) PushUpdate(obj interface{})
type UserWebService ¶
type UserWebService struct { S *restful.WebService // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(d *db.UserDBProvider, a *BasicAuthService) *UserWebService
func (*UserWebService) CreateUser ¶
func (p *UserWebService) CreateUser(request *restful.Request, response *restful.Response)
func (*UserWebService) DeleteUser ¶
func (p *UserWebService) DeleteUser(request *restful.Request, response *restful.Response)
func (*UserWebService) GetUserByName ¶
func (p *UserWebService) GetUserByName(request *restful.Request, response *restful.Response)
func (*UserWebService) GetUserLogByName ¶
func (p *UserWebService) GetUserLogByName(request *restful.Request, response *restful.Response)
func (*UserWebService) ListUser ¶
func (p *UserWebService) ListUser(request *restful.Request, response *restful.Response)
func (*UserWebService) UpdateUser ¶
func (p *UserWebService) UpdateUser(request *restful.Request, response *restful.Response)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.