Documentation ¶
Index ¶
- Constants
- func Init(stdlog, dbglog *log.Logger)
- func NewSessionStore(conf *Config, db *rddb.DB, stdlog, dbglog *log.Logger) (store *sessionStore, err error)
- func RemoveCart(cart uint, rdxportEndpoint, username, password string) (err error)
- type AttachmentChunk
- type Config
- type Context
- type DoneCB
- type FilePolicy
- type ImportParamDefaults
- type ProgressCB
- type ProgressData
- type Result
- type Session
- type SessionStore
- func (store *SessionStore) Get(user, id string) (*Session, string, int, string)
- func (store *SessionStore) List(user, password string, trusted bool, userdata interface{}, cb SessionsUpdateCB) (map[string]string, int, string)
- func (store *SessionStore) New(ctx *Context, refId string) (string, *Session, int, string)
- func (store *SessionStore) Remove(user, id string) (int, string)
- type SessionsListCB
- type SessionsUpdateCB
Constants ¶
View Source
const ( CART_MAX = 999999 CUT_MAX = 999 // not sure if rdxport.cgi can handle filesizes > MAX(INT32) FILESIZE_MAX = (2 * 1024 * 1024 * 1024) - 1 // TODO: make this configurable ARCHIV_HOST = "bigmama.helsinki.at" ARCHIV_USER = "rhimport" ARCHIV_BASE_PATH = "/srv/_nfs4_root_/archiv/ogg-flac" )
Variables ¶
This section is empty.
Functions ¶
func NewSessionStore ¶
func RemoveCart ¶
Types ¶
type AttachmentChunk ¶
type Config ¶
type Context ¶
type Context struct { UserName string Password string Trusted bool ShowId uint ClearShowCarts bool ShowCarts []uint GroupName string Cart uint ClearCart bool Cut uint Channels uint NormalizationLevel int AutotrimLevel int UseMetaData bool SourceUri string AttachmentChan chan AttachmentChunk FetchConverter string ExtraMetaData map[string]string OrigFilename string Title string WorkDir string SourceFile string SourceFilePolicy FilePolicy LoudnessCorr float64 ProgressCallBack ProgressCB ProgressCallBackData interface{} Cancel <-chan bool // contains filtered or unexported fields }
func (*Context) CheckPassword ¶
func (*Context) CreateTempWorkDir ¶
func (*Context) RemoveTempWorkDir ¶
func (ctx *Context) RemoveTempWorkDir()
func (*Context) SanityCheck ¶
func (*Context) SwitchTempWorkDir ¶
type FilePolicy ¶
type FilePolicy int
const ( Delete FilePolicy = iota Keep )
func (*FilePolicy) FromString ¶
func (p *FilePolicy) FromString(str string) error
func (*FilePolicy) String ¶
func (p *FilePolicy) String() string
type ImportParamDefaults ¶
type ProgressCB ¶
type ProgressData ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) AddDoneHandler ¶
func (*Session) AddProgressHandler ¶
func (s *Session) AddProgressHandler(userdata interface{}, cb ProgressCB) error
func (*Session) AttachUploader ¶
func (s *Session) AttachUploader() (<-chan bool, chan<- AttachmentChunk)
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func (*SessionStore) List ¶
func (store *SessionStore) List(user, password string, trusted bool, userdata interface{}, cb SessionsUpdateCB) (map[string]string, int, string)
type SessionsListCB ¶
type SessionsListCB struct {
// contains filtered or unexported fields
}
type SessionsUpdateCB ¶
Click to show internal directories.
Click to hide internal directories.