Documentation ¶
Index ¶
- type User
- type UserResource
- func (u *UserResource) CreateUser(request *restful.Request, response *restful.Response)
- func (u UserResource) FindAllUsers(request *restful.Request, response *restful.Response)
- func (u UserResource) FindUser(request *restful.Request, response *restful.Response)
- func (u *UserResource) RemoveUser(request *restful.Request, response *restful.Response)
- func (u *UserResource) UpdateUser(request *restful.Request, response *restful.Response)
- func (u UserResource) WebService() *restful.WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserResource ¶
type UserResource struct { // normally one would use DAO (data access object) Users map[string]User }
func (*UserResource) CreateUser ¶
func (u *UserResource) CreateUser(request *restful.Request, response *restful.Response)
func (UserResource) FindAllUsers ¶
func (u UserResource) FindAllUsers(request *restful.Request, response *restful.Response)
func (UserResource) FindUser ¶
func (u UserResource) FindUser(request *restful.Request, response *restful.Response)
func (*UserResource) RemoveUser ¶
func (u *UserResource) RemoveUser(request *restful.Request, response *restful.Response)
func (*UserResource) UpdateUser ¶
func (u *UserResource) UpdateUser(request *restful.Request, response *restful.Response)
func (UserResource) WebService ¶
func (u UserResource) WebService() *restful.WebService
Click to show internal directories.
Click to hide internal directories.