Documentation ¶
Index ¶
- func DeleteMemberLink(target *Target, c app_control.Control, ctx dbx_context.Context, ...) error
- func DeleteMemberLinkWithSel(target *Target, c app_control.Control, ctx dbx_context.Context, ...) error
- func RetrieveMemberLinks(member *mo_member.Member, c app_control.Control, ctx dbx_context.Context, ...) error
- func Update(target *Target, c app_control.Control, ctx dbx_context.Context, sel Selector, ...) error
- type DeleteOnFailure
- type DeleteOnSuccess
- type OnSharedLinkMember
- type Selector
- type SelectorOnMissing
- type Target
- type TargetLinks
- type UpdateCreateOpts
- type UpdateFilter
- type UpdateOnFailure
- type UpdateOnSkip
- type UpdateOnSuccess
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMemberLink ¶
func DeleteMemberLink(target *Target, c app_control.Control, ctx dbx_context.Context, onSuccess DeleteOnSuccess, onFailure DeleteOnFailure) error
func DeleteMemberLinkWithSel ¶
func DeleteMemberLinkWithSel(target *Target, c app_control.Control, ctx dbx_context.Context, onSuccess DeleteOnSuccess, onFailure DeleteOnFailure, sel Selector) error
func RetrieveMemberLinks ¶
func RetrieveMemberLinks(member *mo_member.Member, c app_control.Control, ctx dbx_context.Context, handler OnSharedLinkMember) error
func Update ¶
func Update(target *Target, c app_control.Control, ctx dbx_context.Context, sel Selector, opts UpdateOpts) error
Types ¶
type DeleteOnFailure ¶
type DeleteOnSuccess ¶
type DeleteOnSuccess func(t *Target)
type OnSharedLinkMember ¶
type OnSharedLinkMember func(member *mo_member.Member, entry *mo_sharedlink.SharedLinkMember)
type Selector ¶
type Selector interface { // Register the url for process. Register(url string) error // Mark the url as processed. Processed(url string) error // Check weather the url is for process. IsTarget(url string) (bool, error) // Report missing urls Done() error // Number of targets NumTargets() int }
func NewSelector ¶
func NewSelector(c app_control.Control, onMissing SelectorOnMissing) (Selector, error)
type SelectorOnMissing ¶
type SelectorOnMissing func(url string)
type Target ¶
type Target struct { Member *mo_member.Member Entry *mo_sharedlink.SharedLinkMember }
type TargetLinks ¶
type TargetLinks struct {
Url string `json:"url"`
}
type UpdateCreateOpts ¶
type UpdateCreateOpts func(target *Target) (opts []sv_sharedlink.LinkOpt)
Create update options for the target
type UpdateOnFailure ¶
type UpdateOnSuccess ¶
type UpdateOnSuccess func(target *Target, updated mo_sharedlink.SharedLink)
type UpdateOpts ¶
type UpdateOpts struct { Filter UpdateFilter Opts UpdateCreateOpts OnSkip UpdateOnSkip OnMissing SelectorOnMissing OnSuccess UpdateOnSuccess OnFailure UpdateOnFailure }
Click to show internal directories.
Click to hide internal directories.