core

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 58 Imported by: 4

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 {
	RepoPath string

	AddrAPI      ma.Multiaddr
	AddrAPIProxy ma.Multiaddr

	AddrMongoURI  string
	AddrMongoName string

	AddrThreadsHost  ma.Multiaddr
	AddrIPFSAPI      ma.Multiaddr
	AddrBillingAPI   string
	AddrPowergateAPI string

	AddrGatewayHost ma.Multiaddr
	AddrGatewayURL  string

	ThreadsConnManager connmgr.ConnManager

	UseSubdomains bool

	DNSDomain string
	DNSZoneID string
	DNSToken  string

	EmailFrom          string
	EmailDomain        string
	EmailAPIKey        string
	EmailSessionSecret string

	MaxBucketSize            int64
	MaxNumberThreadsPerOwner int

	Hub   bool
	Debug bool

	PowergateAdminToken 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) (*Textile, error)

func (*Textile) Bootstrap

func (t *Textile) Bootstrap()

func (*Textile) Close

func (t *Textile) Close(force bool) 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