Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IpfsAddr string
View Source
var MaxThreadsConn int
View Source
var MinThreadsConn int
View Source
var MongoHost string
View Source
var MongoPw string
View Source
var MongoRepSet string
View Source
var MongoUsr string
Functions ¶
Types ¶
type Bucket ¶
type Bucket interface { Slug() string Key() string GetData() bucket.BucketData DirExists(ctx context.Context, path string) (bool, error) FileExists(ctx context.Context, path string) (bool, error) UploadFile( ctx context.Context, path string, reader io.Reader, ) (result path.Resolved, root path.Path, err error) GetFile( ctx context.Context, path string, w io.Writer, ) error CreateDirectory( ctx context.Context, path string, ) (result path.Resolved, root path.Path, err error) ListDirectory( ctx context.Context, path string, ) (*bucket.DirEntries, error) DeleteDirOrFile( ctx context.Context, path string, ) (path.Resolved, error) }
type BucketRoot ¶
type BucketRoot buckets_pb.Root
type BucketSchema ¶ added in v0.0.10
type BucketSchema struct { ID core.InstanceID `json:"_id"` Slug string `json:"slug"` DbID string }
type Client ¶
type Client interface { IsRunning() bool GetDefaultBucket(ctx context.Context) (Bucket, error) GetBucket(ctx context.Context, slug string) (Bucket, error) GetThreadsConnection() (*threadsClient.Client, error) GetBucketContext(ctx context.Context, bucketSlug string) (context.Context, *thread.ID, error) ListBuckets(ctx context.Context) ([]Bucket, error) JoinBucket(ctx context.Context, slug string, ti *domain.ThreadInfo) (bool, error) CreateBucket(ctx context.Context, bucketSlug string) (Bucket, error) Shutdown() error WaitForReady() chan bool Start(ctx context.Context, cfg config.Config) error }
type EventHandler ¶
type EventHandler interface { OnCreate(bucketData *bucket.BucketData, listenEvent *tc.ListenEvent) OnRemove(bucketData *bucket.BucketData, listenEvent *tc.ListenEvent) OnSave(bucketData *bucket.BucketData, listenEvent *tc.ListenEvent) }
EventHandler
type TextileBuckd ¶
type TextileBuckd struct { IsRunning bool Ready chan bool // contains filtered or unexported fields }
func NewBuckd ¶
func NewBuckd(cfg config.Config) *TextileBuckd
func (*TextileBuckd) Shutdown ¶
func (tb *TextileBuckd) Shutdown() error
func (*TextileBuckd) Stop ¶
func (tb *TextileBuckd) Stop() error
func (*TextileBuckd) WaitForReady ¶ added in v0.0.11
func (tb *TextileBuckd) WaitForReady() chan bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.