action

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssetScanRequestType fsa.Type = assetPrefix + "SCAN/REQUEST"
	AssetScanRunningType fsa.Type = assetPrefix + "SCAN/RUNNING"
	AssetScanFinishType  fsa.Type = assetPrefix + "SCAN/FINISH"
)
View Source
const (
	BoxAssignRequestType   fsa.Type = boxPrefix + "ASSIGN/REQUEST"
	BoxAssignType          fsa.Type = boxPrefix + "ASSIGN"
	BoxUnAssignRequestType fsa.Type = boxPrefix + "UNASSIGN/REQUEST"
	BoxUnAssignType        fsa.Type = boxPrefix + "UNASSIGN"
	BoxModifyRequestType   fsa.Type = boxPrefix + "MODIFY/REQUEST"
	BoxModifyType          fsa.Type = boxPrefix + "MODIFY"
	BoxDeleteRequestType   fsa.Type = boxPrefix + "DELETE/REQUEST"
	BoxDeleteType          fsa.Type = boxPrefix + "DELETE"
)
View Source
const (
	FSScanRequestType fsa.Type = fsPrefix + "SCAN/REQUEST"
	//FSScanCancelType    fsa.Type = fsPrefix + "SCAN/CANCEL"
	FSScanStartType     fsa.Type = fsPrefix + "SCAN/START"
	FSScanFinishType    fsa.Type = fsPrefix + "SCAN/FINISH"
	FSScanRunningType   fsa.Type = fsPrefix + "SCAN/RUNNING"
	FSScanFailType      fsa.Type = fsPrefix + "SCAN/FAIL"
	FSBaseDirSelectType fsa.Type = fsPrefix + "BASE_DIR/SELECT"
)
View Source
const (
	IndexPrefix                                 = "INDEX/"
	IndexChangeBasePathButtonClickType fsa.Type = IndexPrefix + "CHANGE_BASE_PATH_BUTTON/CLICK"
)
View Source
const (
	TagScanResultType fsa.Type = tagPrefix + "SCAN/RESULT"
	TagSaveType       fsa.Type = tagPrefix + "SAVE"
	TagUpdateType     fsa.Type = tagPrefix + "UPDATE"
)
View Source
const (
	WorkSpaceScanRequestType   fsa.Type = workSpacePrefix + "SCAN/REQUEST"
	WorkSpaceSelectType        fsa.Type = workSpacePrefix + "SELECT"
	WorkSpaceScanResultType    fsa.Type = workSpacePrefix + "SCAN/RESULT"
	WorkSpaceUpdateRequestType fsa.Type = workSpacePrefix + "UPDATE/REQUEST"
	WorkSpaceUpdateType        fsa.Type = workSpacePrefix + "UPDATE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseDirSelectPayload added in v0.1.1

type BaseDirSelectPayload struct {
	*WsPayload
	BasePath string `json:"basePath"`
}

type BasePathPayload added in v0.1.1

type BasePathPayload struct {
	WsPayload `mapstructure:",squash"`
	BasePath  string `json:"basePath"`
}

type FsScanFailPayload

type FsScanFailPayload struct {
	*WsPayload
	Error string `json:"error"`
}

type FsScanRequestPayload added in v0.1.1

type FsScanRequestPayload struct {
	BasePathPayload `mapstructure:",squash"`
}

type FsScanStartPayload

type FsScanStartPayload struct {
	*WsPayload
	*BasePathPayload
}

type HandlerCreator

type HandlerCreator struct {
	Asset     *assetHandlerCreator
	Box       *boxHandlerCreator
	Tag       *tagHandlerCreator
	FS        *fsHandlerCreator
	Workspace *workspaceHandlerCreator
	// contains filtered or unexported fields
}

func NewHandlerCreator

func NewHandlerCreator(
	assetUseCase usecase.Asset,
	tagUseCase *interactor.Tag,
	client *client.Client,
	b *bbolt.DB,
) *HandlerCreator

type ScanningImagesPayload

type ScanningImagesPayload struct {
	*WsPayload
	FoundedAssetsNum int `json:"foundedAssetsNum"`
}

type WorkSpaceScanResultPayload added in v0.1.3

type WorkSpaceScanResultPayload struct {
	BasePath   string             `json:"basePath"`
	WorkSpaces []*model.WorkSpace `json:"workspaces"`
}

type WorkSpaceUpdatePayload

type WorkSpaceUpdatePayload struct {
	WorkSpace model.WorkSpace
}

type WsPayload added in v0.1.4

type WsPayload struct {
	WorkSpaceName model.WSName `json:"workSpaceName"`
}

Jump to

Keyboard shortcuts

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