Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UsersusernameorganizationsInterfaceRoutes ¶
func UsersusernameorganizationsInterfaceRoutes(r *mux.Router, i UsersusernameorganizationsInterface)
UsersusernameorganizationsInterfaceRoutes is routing for /users/{username}/organizations root endpoint
Types ¶
type Oauth2oauth_2_0Middleware ¶
type Oauth2oauth_2_0Middleware struct {
user.Oauth2oauth_2_0Middleware
}
Oauth2oauth_2_0Middleware is just a wrapper for the user authorization middleware and follows the same rules for authorization
type UsersusernameorganizationsAPI ¶
type UsersusernameorganizationsAPI struct { }
func (UsersusernameorganizationsAPI) Get ¶
func (api UsersusernameorganizationsAPI) Get(w http.ResponseWriter, r *http.Request)
Get the list organizations a user is owner or member of It is handler for GET /users/{username}/organizations
type UsersusernameorganizationsInterface ¶
type UsersusernameorganizationsInterface interface { // Get the list organizations a user is owner or member of Get(http.ResponseWriter, *http.Request) // contains filtered or unexported methods }
UsersusernameorganizationsInterface is interface for /users/{username}/organizations root endpoint
Click to show internal directories.
Click to hide internal directories.