core

package
v2.6.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 69 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTooManyThreadsPerOwner indicates that the maximum amount of threads
	// are created for an owner.
	ErrTooManyThreadsPerOwner = errors.New("number of threads per owner exceeds quota")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Hub   bool
	Debug bool

	// Addresses
	AddrAPI          ma.Multiaddr
	AddrAPIProxy     ma.Multiaddr
	AddrMongoURI     string
	AddrMongoName    string
	AddrThreadsHost  ma.Multiaddr
	AddrGatewayHost  ma.Multiaddr
	AddrGatewayURL   string
	AddrIPFSAPI      ma.Multiaddr
	AddrBillingAPI   string
	AddrPowergateAPI string

	// Buckets
	MaxBucketArchiveRepFactor int
	MaxBucketArchiveSize      int64
	MinBucketArchiveSize      int64

	// Threads
	MaxNumberThreadsPerOwner int
	ThreadsConnManager       connmgr.ConnManager

	// IPNS
	IPNSRepublishSchedule    string
	IPNSRepublishConcurrency int

	// Powergate
	PowergateAdminToken string

	// Archives
	ArchiveJobPollIntervalSlow time.Duration
	ArchiveJobPollIntervalFast time.Duration

	// Gateway
	UseSubdomains   bool
	MaxEventsPerSec int
	MaxBurstSize    int

	// Cloudflare
	DNSDomain string
	DNSZoneID string
	DNSToken  string

	// Customer.io
	CustomerioAPIKey      string
	CustomerioConfirmTmpl string
	CustomerioInviteTmpl  string
	EmailSessionSecret    string
}

type Option added in v2.3.0

type Option func(*Options)

func WithBadgerThreadsPersistence added in v2.3.0

func WithBadgerThreadsPersistence(repoPath string) Option

func WithMongoThreadsPersistence added in v2.3.0

func WithMongoThreadsPersistence(uri, db string) Option

type Options added in v2.3.0

type Options struct {
	ThreadsBadgerRepoPath string
	ThreadsMongoUri       string
	ThreadsMongoDB        string
}

type StatsHandler added in v2.1.4

type StatsHandler struct {
	// contains filtered or unexported fields
}

func (*StatsHandler) HandleConn added in v2.1.4

func (h *StatsHandler) HandleConn(context.Context, stats.ConnStats)

func (*StatsHandler) HandleRPC added in v2.1.4

func (h *StatsHandler) HandleRPC(ctx context.Context, st stats.RPCStats)

HandleRPC accounts for customer usage across services.

func (*StatsHandler) TagConn added in v2.1.4

func (*StatsHandler) TagRPC added in v2.1.4

func (h *StatsHandler) TagRPC(ctx context.Context, info *stats.RPCTagInfo) context.Context

type Textile

type Textile struct {
	// contains filtered or unexported fields
}

func NewTextile

func NewTextile(ctx context.Context, conf Config, opts ...Option) (*Textile, error)

func (*Textile) Bootstrap

func (t *Textile) Bootstrap()

func (*Textile) Close

func (t *Textile) Close() error

func (*Textile) HostID

func (t *Textile) HostID() peer.ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL