contract

package
v0.0.0-...-d3d53d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2016 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

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 ContractsAPI

type ContractsAPI struct {
}

ContractsAPI service

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

func (*Oauth2oauth_2_0Middleware) Handler

Handler return HTTP handler representation of this middleware

type OrganizationsglobalidcontractsAPI

type OrganizationsglobalidcontractsAPI struct {
}

func (OrganizationsglobalidcontractsAPI) Get

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

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL