Documentation ¶
Index ¶
- type DatasetRequest
- type Entity
- type Layer
- func (l *Layer) ChangeSet(request db.DatasetRequest, callBack func(*Entity)) error
- func (l *Layer) DoesDatasetExist(datasetName string) bool
- func (l *Layer) GetContext(datasetName string) map[string]interface{}
- func (l *Layer) GetDatasetNames() []string
- func (l *Layer) GetDatasetPostNames() []string
- func (l *Layer) GetTableDefinition(datasetName string) *conf.TableMapping
- type PostLayer
- type PostRepository
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatasetRequest ¶
type Entity ¶
type Entity struct { ID string `json:"id"` IsDeleted bool `json:"deleted"` References map[string]interface{} `json:"refs"` Properties map[string]interface{} `json:"props"` }
func NewEntity ¶
func NewEntity() *Entity
NewEntity Create a new entity with global uuid and internal resource id
func (*Entity) StripProps ¶
type Layer ¶
type Layer struct { Repo *Repository //exported because it needs to deferred from main // contains filtered or unexported fields }
func (*Layer) ChangeSet ¶
func (l *Layer) ChangeSet(request db.DatasetRequest, callBack func(*Entity)) error
func (*Layer) DoesDatasetExist ¶
func (*Layer) GetContext ¶
func (*Layer) GetDatasetNames ¶
func (*Layer) GetDatasetPostNames ¶
func (*Layer) GetTableDefinition ¶
func (l *Layer) GetTableDefinition(datasetName string) *conf.TableMapping
type PostLayer ¶
type PostLayer struct { PostRepo *PostRepository //exported because it needs to deferred from main?? // contains filtered or unexported fields }
func NewPostLayer ¶
func NewPostLayer(lc fx.Lifecycle, cmgr *conf.ConfigurationManager, logger *zap.SugaredLogger) *PostLayer
func (*PostLayer) GetTableDefinition ¶
func (postLayer *PostLayer) GetTableDefinition(datasetName string) *conf.PostMapping
type PostRepository ¶
type Repository ¶
Click to show internal directories.
Click to hide internal directories.