affiliations

package
v0.0.0-...-8bc6207 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Affiliation

type Affiliation struct {
	Id       uint64 `json:"id"`
	Name     string `json:"name"`
	Website  string `json:"website"`
	FileName string `json:"file_name"`
}

type AffiliationRepo

type AffiliationRepo interface {
	GetAffiliation(id uint64) (Affiliation, error)
	ListAffiliation() ([]Affiliation, error)
	AddAffiliation(affiliation Affiliation) error
	EditAffiliation(affiliation Affiliation) error
	DeleteAffiliation(id uint64) error
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(scope *gocb.Scope) *Store

NewStore creates a new store

func (*Store) AddAffiliation

func (m *Store) AddAffiliation(p *Affiliation) error

func (*Store) DeleteAffiliation

func (m *Store) DeleteAffiliation(id uint64) error

func (*Store) GetAffiliationById

func (m *Store) GetAffiliationById(id uint64) (p Affiliation, err error)

func (*Store) ListAllAffiliations

func (m *Store) ListAllAffiliations() (p []Affiliation, err error)

Jump to

Keyboard shortcuts

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