Documentation ¶
Index ¶
- Constants
- type Bucket
- type Buckets
- func (b *Buckets) Create(ctx context.Context, dbID thread.ID, key, name string, pth path.Path, ...) (*Bucket, error)
- func (b *Buckets) Delete(ctx context.Context, dbID thread.ID, key string, opts ...Option) error
- func (b *Buckets) Get(ctx context.Context, dbID thread.ID, key string, opts ...Option) (*Bucket, error)
- func (b *Buckets) List(ctx context.Context, dbID thread.ID, opts ...Option) ([]*Bucket, error)
- func (b *Buckets) Save(ctx context.Context, dbID thread.ID, bucket *Bucket, opts ...Option) error
- type Option
- type Options
- type Service
- func (s *Service) Init(ctx context.Context, req *pb.InitRequest) (*pb.InitReply, error)
- func (s *Service) Links(ctx context.Context, req *pb.LinksRequest) (*pb.LinksReply, error)
- func (s *Service) List(ctx context.Context, _ *pb.ListRequest) (*pb.ListReply, error)
- func (s *Service) ListPath(ctx context.Context, req *pb.ListPathRequest) (*pb.ListPathReply, error)
- func (s *Service) PullPath(req *pb.PullPathRequest, server pb.API_PullPathServer) error
- func (s *Service) PushPath(server pb.API_PushPathServer) error
- func (s *Service) Remove(ctx context.Context, req *pb.RemoveRequest) (*pb.RemoveReply, error)
- func (s *Service) RemovePath(ctx context.Context, req *pb.RemovePathRequest) (*pb.RemovePathReply, error)
Constants ¶
View Source
const CollectionName = "buckets"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buckets ¶
type Service ¶
type Service struct { Collections *c.Collections Buckets *Buckets IPFSClient iface.CoreAPI FilecoinClient *fc.Client GatewayUrl string DNSManager *dns.Manager IPNSManager *ipns.Manager }
Service is a gRPC service for buckets.
func (*Service) Links ¶
func (s *Service) Links(ctx context.Context, req *pb.LinksRequest) (*pb.LinksReply, error)
func (*Service) ListPath ¶
func (s *Service) ListPath(ctx context.Context, req *pb.ListPathRequest) (*pb.ListPathReply, error)
func (*Service) PullPath ¶
func (s *Service) PullPath(req *pb.PullPathRequest, server pb.API_PullPathServer) error
func (*Service) Remove ¶
func (s *Service) Remove(ctx context.Context, req *pb.RemoveRequest) (*pb.RemoveReply, error)
func (*Service) RemovePath ¶
func (s *Service) RemovePath(ctx context.Context, req *pb.RemovePathRequest) (*pb.RemovePathReply, error)
Click to show internal directories.
Click to hide internal directories.