Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandler ¶
MakeHandler returns a restful http handler for the file status service
Types ¶
type FileCheck ¶
type FileCheck struct { Location string `json:"name,omitempty" bson:"Location,omitempty"` CheckDate string `json:"checkdate,omitempty" bson:"CheckDate,omitempty"` FileName string `json:"filename,omitempty" bson:"FileName,omitempty"` FileStatus string `json:"filestatus,omitempty" bson:"FileStatus,omitempty"` }
type Service ¶
type Service interface { StatusResults() Response // contains filtered or unexported methods }
func NewInstrumentService ¶
func NewService ¶
func NewService(json jsonFileInteraction.Service, fieldKeys []string, logger log.Logger, store Store, fileStore fileChecker.Store) Service
Create new Filechecker instance in memory for each location
type Store ¶
type Store interface {
// contains filtered or unexported methods
}
func NewMongoStore ¶
func NewMongoStore(mongo *mgo.Database) Store
Click to show internal directories.
Click to hide internal directories.