Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface { common.StarterShutdowner }
func NewApplication ¶
func NewApplication(l *logrus.Logger, b *Bootstrapd, db *sql.DB, conf *ConfigFile) (Application, error)
type BootstrapInfo ¶
type Bootstrapd ¶
type Bootstrapd struct {
// contains filtered or unexported fields
}
func NewBootstrapd ¶
func NewBootstrapd(l *logrus.Logger) *Bootstrapd
func (*Bootstrapd) HandleCacheAnnounceRequest ¶
func (b *Bootstrapd) HandleCacheAnnounceRequest(ctx context.Context, req *ccmsg.CacheAnnounceRequest) (*ccmsg.CacheAnnounceResponse, error)
func (*Bootstrapd) HandleCacheFetchRequest ¶
func (b *Bootstrapd) HandleCacheFetchRequest(ctx context.Context, req *ccmsg.CacheFetchRequest) (*ccmsg.CacheFetchResponse, error)
type CacheStats ¶
func NewCacheStats ¶
func NewCacheStats() *CacheStats
func (*CacheStats) ReadDiskStats ¶
func (cs *CacheStats) ReadDiskStats(path string) error
func (*CacheStats) ReadMemoryStats ¶
func (cs *CacheStats) ReadMemoryStats()
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AnnounceCache ¶
func (c *Client) AnnounceCache(ctx context.Context, info BootstrapInfo) error
func (*Client) FetchCaches ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.