Documentation ¶
Index ¶
- func WebhookHandler(conf Config) (cmswebhook.Handler, error)
- type Config
- type Indexer
- type Item
- type OutputFS
- type Status
- type Storage
- func (s *Storage) All(ctx context.Context) (r StorageItems, err error)
- func (s *Storage) Delete(ctx context.Context, id string) error
- func (s *Storage) FindByAsset(ctx context.Context, assetid string) (r StorageItem, err error)
- func (s *Storage) FindByItem(ctx context.Context, itemid string) (r StorageItem, err error)
- func (s *Storage) Set(ctx context.Context, item StorageItem) (err error)
- type StorageItem
- type StorageItems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebhookHandler ¶
func WebhookHandler(conf Config) (cmswebhook.Handler, error)
Types ¶
type Config ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func NewIndexer ¶
func NewZipIndexer ¶
type Item ¶
type Item struct { ID string `json:"id,omitempty" cms:"id"` // asset: bldg Bldg []string `json:"bldg,omitempty" cms:"bldg,asset"` // asset: search_index SearchIndex []string `json:"search_index,omitempty" cms:"search_index,asset"` // select: search_index_status: 未実行, 実行中, 完了, エラー SearchIndexStatus Status `json:"search_index_status,omitempty" cms:"search_index_status,select"` }
type OutputFS ¶
type OutputFS struct {
// contains filtered or unexported fields
}
func NewOutputFS ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) FindByAsset ¶
func (*Storage) FindByItem ¶
type StorageItem ¶
type StorageItem struct { ID string `json:"id,omitempty" cms:"id"` Item string `json:"item,omitempty" cms:"item,text"` Asset []string `json:"asset,omitempty" cms:"asset,asset"` }
func (StorageItem) RemoveAsset ¶
func (s StorageItem) RemoveAsset(aid string) StorageItem
type StorageItems ¶
type StorageItems []StorageItem
func (StorageItems) FindByAsset ¶
func (s StorageItems) FindByAsset(aid string) *StorageItem
func (StorageItems) FindByItem ¶
func (s StorageItems) FindByItem(iid string) *StorageItem
Click to show internal directories.
Click to hide internal directories.