Documentation ¶
Index ¶
- type Institution
- type InstitutionManager
- func (m *InstitutionManager) AddInstitution(ins Institution) error
- func (m *InstitutionManager) GetInstitution(name string) (Institution, error)
- func (m *InstitutionManager) GetInstitutions(names []string) ([]Institution, error)
- func (m *InstitutionManager) List() []Institution
- func (m *InstitutionManager) UpdateConsentExpiry(name string, newExpiry time.Time) (Institution, error)
- func (m *InstitutionManager) WriteInstitutions() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Institution ¶
type InstitutionManager ¶
type InstitutionManager struct {
// contains filtered or unexported fields
}
InstitutionManager is not safe for concurrent use
func NewInstitutionManager ¶
func NewInstitutionManager(confDir, filename string) (*InstitutionManager, error)
NewInstitutionManager assumed confDir already exists. The returned InstitutionManager is not safe for concurrent use.
func (*InstitutionManager) AddInstitution ¶
func (m *InstitutionManager) AddInstitution(ins Institution) error
func (*InstitutionManager) GetInstitution ¶
func (m *InstitutionManager) GetInstitution(name string) (Institution, error)
func (*InstitutionManager) GetInstitutions ¶
func (m *InstitutionManager) GetInstitutions(names []string) ([]Institution, error)
GetInstitutions returns all institutions if len(names) == 0
func (*InstitutionManager) List ¶
func (m *InstitutionManager) List() []Institution
func (*InstitutionManager) UpdateConsentExpiry ¶
func (m *InstitutionManager) UpdateConsentExpiry(name string, newExpiry time.Time) (Institution, error)
func (*InstitutionManager) WriteInstitutions ¶
func (m *InstitutionManager) WriteInstitutions() error
Click to show internal directories.
Click to hide internal directories.