Versions in this module Expand all Collapse all v0 v0.0.1 Nov 18, 2019 Changes in this version + type Document struct + Created time.Time + Data []byte + Description string + DocType string + EdgarURL string + FilingID string + ID string + Sequence int64 + SizeEstimate string + type DocumentDao interface + Get func(documentID string) (exists bool, doc *model.Document, err error) + GetByFilingID func(filingID string) (exists bool, docs []*model.Document, err error) + GetIDs func(filingID string) (exists bool, ids []string, err error) + type DocumentDaoImpl struct + func (dao *DocumentDaoImpl) Get(documentID string) (exists bool, doc *model.Document, err error) + func (dao *DocumentDaoImpl) GetByFilingID(filingID string) (exists bool, docs []*model.Document, err error) + func (dao *DocumentDaoImpl) GetIDs(filingID string) (exists bool, ids []string, err error) + type Filer struct + CIK string + ID string + Name string + SIC string + SICDescription string + Symbol string + type FilerDao interface + GetSet func(term string) (bool, []*model.Filer, error) + Put func(filer *model.Filer) (bool, error) + Search func(condition string) (bool, []*model.Filer, error) + type FilerDaoImpl struct + func (dao *FilerDaoImpl) GetSet(term string) (found bool, filers []*model.Filer, err error) + func (dao *FilerDaoImpl) GetSetBySIC(term string) (found bool, filers []*model.Filer, err error) + func (dao *FilerDaoImpl) Put(filer *model.Filer) (bool, error) + func (dao *FilerDaoImpl) Search(condition string) (found bool, filers []*model.Filer, err error) + type Filing struct + Accession string + AllCIKs []string + AllSymbols []string + CIK string + Created time.Time + DocumentCount int64 + EdgarTime time.Time + EdgarURL string + Filer string + FilerRelation string + FormType string + ID string + Symbol string + TotalSizeEstimate string + Updated time.Time + type FilingDao interface + Add func(filing *model.Filing) (created *model.Filing, existed bool, err error) + AddDocuments func(filing *model.Filing, docs []*model.Document) error + Get func(accession string) (exists bool, filing *model.Filing, err error) + GetAll func(params *QueryParams) (exists bool, result *QueryResult, err error) + GetByCIK func(params *QueryParams) (exists bool, result *QueryResult, err error) + GetByFiler func(params *QueryParams) (exists bool, result *QueryResult, err error) + GetByID func(filingID string) (exists bool, filing *model.Filing, err error) + GetBySymbol func(params *QueryParams) (exists bool, result *QueryResult, err error) + StrictExists func(cik, accession, relation string) (bool, error) + Update func(filing *model.Filing) (bool, error) + type FilingDaoImpl struct + func (dao *FilingDaoImpl) Add(filing *model.Filing) (created *model.Filing, existed bool, err error) + func (dao *FilingDaoImpl) AddDocuments(filing *model.Filing, docs []*model.Document) error + func (dao *FilingDaoImpl) Get(accession string) (exists bool, filing *model.Filing, err error) + func (dao *FilingDaoImpl) GetAll(params *QueryParams) (exists bool, result *QueryResult, err error) + func (dao *FilingDaoImpl) GetByCIK(params *QueryParams) (exists bool, result *QueryResult, err error) + func (dao *FilingDaoImpl) GetByFiler(params *QueryParams) (exists bool, result *QueryResult, err error) + func (dao *FilingDaoImpl) GetByID(filingID string) (exists bool, filing *model.Filing, err error) + func (dao *FilingDaoImpl) GetBySymbol(params *QueryParams) (exists bool, result *QueryResult, err error) + func (dao *FilingDaoImpl) StrictExists(cik, accession, relation string) (bool, error) + func (dao *FilingDaoImpl) Update(filing *model.Filing) (bool, error) + type Form struct + Active bool + Description string + FormType string + ID string + type FormDao interface + GetActiveForms func() ([]*model.Form, error) + type FormDaoImpl struct + func (dao *FormDaoImpl) GetActiveForms() (forms []*model.Form, err error) + type Handle struct + func Open(opts Options) *Handle + func (h *Handle) NewDocumentDao() *DocumentDaoImpl + func (h *Handle) NewFilerDao() *FilerDaoImpl + func (h *Handle) NewFilingDao() *FilingDaoImpl + func (h *Handle) NewFormDao() *FormDaoImpl + type Options struct + Addr string + Database string + Password string + User string + type QueryParams struct + End string + Form string + Page int + Size int + Sort int + Start string + Term string + type QueryResult struct + Filings []*model.Filing + TotalCount int