Documentation ¶
Index ¶
- func InitModels()
- type Contract
- type ContractSigningRequest
- type Manager
- func (m *Manager) AddSignature(contractID string, signature Signature) (err error)
- func (m *Manager) Delete(contractid string) (err error)
- func (m *Manager) Exists(contractID string) (bool, error)
- func (m *Manager) Get(contractid string) (contract *Contract, err error)
- func (m *Manager) GetByIncludedParty(party *Party, start int, max int, includeExpired bool) (contracts []Contract, err error)
- func (m *Manager) IsParticipant(contractID string, name string) (isparticipant bool, err error)
- func (m *Manager) Save(contract *Contract) (err error)
- type Party
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Contract ¶
type Contract struct { ID bson.ObjectId `json:"-" bson:"_id,omitempty"` Content string `json:"content"` ContractType string `json:"contractType"` Expires db.DateTime `json:"expires"` Extends []string `json:"extends"` Invalidates []string `json:"invalidates"` Parties []Party `json:"parties"` ContractId string `json:"contractId"` Signatures []Signature `json:"signatures"` }
type ContractSigningRequest ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is used to store organizations
func NewManager ¶
NewManager creates and initializes a new Manager
func (*Manager) AddSignature ¶
AddSignature adds a signature to a contract
func (*Manager) GetByIncludedParty ¶
func (m *Manager) GetByIncludedParty(party *Party, start int, max int, includeExpired bool) (contracts []Contract, err error)
GetByIncludedParty Get contracts that include the included party
func (*Manager) IsParticipant ¶
IsParticipant check if name is participant in contract with id contractID
Click to show internal directories.
Click to hide internal directories.