Documentation
¶
Index ¶
- func ContractsInterfaceRoutes(r *mux.Router, i ContractsInterface)
- func CreateContract(w http.ResponseWriter, r *http.Request, includedparty contractdb.Party)
- func FindContracts(w http.ResponseWriter, r *http.Request, includedparty contractdb.Party)
- func OrganizationsglobalidcontractsInterfaceRoutes(r *mux.Router, i OrganizationsglobalidcontractsInterface)
- func UsersusernamecontractsInterfaceRoutes(r *mux.Router, i UsersusernamecontractsInterface)
- type ContractsAPI
- type ContractsInterface
- type Oauth2oauth_2_0Middleware
- type OrganizationsglobalidcontractsAPI
- type OrganizationsglobalidcontractsInterface
- type UsersusernamecontractsAPI
- type UsersusernamecontractsInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractsInterfaceRoutes ¶
func ContractsInterfaceRoutes(r *mux.Router, i ContractsInterface)
ContractsInterfaceRoutes is routing for /contracts root endpoint
func CreateContract ¶
func CreateContract(w http.ResponseWriter, r *http.Request, includedparty contractdb.Party)
CreateContract will save contract
func FindContracts ¶
func FindContracts(w http.ResponseWriter, r *http.Request, includedparty contractdb.Party)
FindContracts for query
func OrganizationsglobalidcontractsInterfaceRoutes ¶
func OrganizationsglobalidcontractsInterfaceRoutes(r *mux.Router, i OrganizationsglobalidcontractsInterface)
func UsersusernamecontractsInterfaceRoutes ¶
func UsersusernamecontractsInterfaceRoutes(r *mux.Router, i UsersusernamecontractsInterface)
Types ¶
type ContractsInterface ¶
type ContractsInterface interface {
// contains filtered or unexported methods
}
ContractsInterface is interface for /contracts root endpoint
type Oauth2oauth_2_0Middleware ¶
type Oauth2oauth_2_0Middleware struct {
security.OAuth2Middleware
}
Oauth2oauth_2_0Middleware is oauth2 middleware for oauth_2_0
func (*Oauth2oauth_2_0Middleware) CheckScopes ¶
func (om *Oauth2oauth_2_0Middleware) CheckScopes(scopes []string) bool
CheckScopes checks whether user has needed scopes
type OrganizationsglobalidcontractsAPI ¶
type OrganizationsglobalidcontractsAPI struct { }
func (OrganizationsglobalidcontractsAPI) Get ¶
func (api OrganizationsglobalidcontractsAPI) Get(w http.ResponseWriter, r *http.Request)
Get the contracts where the organization is 1 of the parties. Order descending by date. It is handler for GET /organizations/{globalid}/contracts
type OrganizationsglobalidcontractsInterface ¶
type OrganizationsglobalidcontractsInterface interface { // Get the contracts where the organization is 1 of the parties. Order descending by // date. // It is handler for GET /organizations/{globalid}/contracts Get(http.ResponseWriter, *http.Request) }
type UsersusernamecontractsAPI ¶
type UsersusernamecontractsAPI struct { }
func (UsersusernamecontractsAPI) Get ¶
func (api UsersusernamecontractsAPI) Get(w http.ResponseWriter, r *http.Request)
Get the contracts where the user is 1 of the parties. Order descending by date. It is handler for GET /users/{username}/contracts
type UsersusernamecontractsInterface ¶
type UsersusernamecontractsInterface interface { // Get the contracts where the user is 1 of the parties. Order descending by date. // It is handler for GET /users/{username}/contracts Get(http.ResponseWriter, *http.Request) }
Click to show internal directories.
Click to hide internal directories.