Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) DataGet(ctx context.Context, URL string) (*Data, error)
- func (db *DB) DataGetWithUser(ctx context.Context, user *User, URL string) (*Data, error)
- func (db *DB) DataNew(ctx context.Context, user *User, blob []byte, public bool) (*Data, error)
- func (db *DB) InviteNew(ctx context.Context, user *User) (*Invite, error)
- func (db *DB) InviteUse(ctx context.Context, url string) error
- func (db *DB) InviteValid(ctx context.Context, url string) error
- func (db *DB) UserGet(ctx context.Context, username, password string) (*User, error)
- func (db *DB) UserGetFromToken(ctx context.Context, token string) (*User, error)
- func (db *DB) UserNew(ctx context.Context, username, password string) (*User, error)
- type Data
- type Invite
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxFileSizeBytes = 4294967295 // 4GB, actually slightly more. ErrTooBig = errors.New("file size must be under 4GB") ErrNoAccess = errors.New("file not found") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) DataGetWithUser ¶
func (*DB) UserGetFromToken ¶
Click to show internal directories.
Click to hide internal directories.