Documentation
¶
Index ¶
- type ByObjectName
- type EService
- func (s *EService) GetDevice(ctx context.Context, nick, owner, tokenOwner string) (device *devices.Device, rerr *utils.RError)
- func (s *EService) GetStepRev(ctx context.Context, trailID, rev, frags string) (r string, state []byte, modtime *time.Time, rerr *utils.RError)
- func (s *EService) GetTrailObjects(ctx context.Context, deviceID, rev, owner, authType string, isPublic bool, ...) (owa []objects.ObjectWithAccess, rerr *utils.RError)
- func (s *EService) GetUserAccountByNick(ctx context.Context, nick string) (accounts.Account, error)
- func (s *EService) WriteExportTar(w rest.ResponseWriter, filename string, ...)
- type ExportService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByObjectName ¶
type ByObjectName []objects.ObjectWithAccess
func (ByObjectName) Len ¶
func (a ByObjectName) Len() int
func (ByObjectName) Less ¶
func (a ByObjectName) Less(i, j int) bool
func (ByObjectName) Swap ¶
func (a ByObjectName) Swap(i, j int)
type EService ¶
type EService struct {
// contains filtered or unexported fields
}
func (*EService) GetStepRev ¶
func (*EService) GetTrailObjects ¶
func (*EService) GetUserAccountByNick ¶
GetUserAccountByNick : Get User Account By Nick
func (*EService) WriteExportTar ¶
func (s *EService) WriteExportTar( w rest.ResponseWriter, filename string, objectDownloads []objects.ObjectWithAccess, state []byte, modtime *time.Time, )
type ExportService ¶
type ExportService interface { GetUserAccountByNick(ctx context.Context, nick string) (accounts.Account, error) GetDevice(ctx context.Context, nick, owner, tokenOwner string) (device *devices.Device, rerr *utils.RError) GetTrailObjects(ctx context.Context, deviceID, rev, owner, authType string, isPublic bool, frags string) (owa []objects.ObjectWithAccess, rerr *utils.RError) GetStepRev(ctx context.Context, trailID, rev, frags string) (r string, state []byte, modtime *time.Time, rerr *utils.RError) WriteExportTar( w rest.ResponseWriter, filename string, objectDownloads []objects.ObjectWithAccess, state []byte, modetime *time.Time) }
func CreateService ¶
func CreateService(client *mongo.Client, db string) ExportService
Click to show internal directories.
Click to hide internal directories.