Versions in this module Expand all Collapse all v0 v0.1.1 Feb 21, 2022 v0.1.0 Feb 21, 2022 Changes in this version + type Config struct + Dir string + GCDiscardRatio float64 + GCInterval time.Duration + ProfileTTL time.Duration + func (conf *Config) CreateStorage(logger *log.Logger) (*Storage, io.Closer, error) + func (conf *Config) RegisterFlags(f *flag.FlagSet) + type ProfileList struct + func (pl *ProfileList) Close() error + func (pl *ProfileList) Next() bool + func (pl *ProfileList) Profile() (io.Reader, error) + type Storage struct + func NewStorage(logger *log.Logger, db *badger.DB, ttl time.Duration) *Storage + func (st *Storage) FindProfileIDs(ctx context.Context, params *storage.FindProfilesParams) ([]profile.ID, error) + func (st *Storage) FindProfiles(ctx context.Context, params *storage.FindProfilesParams) ([]profile.Meta, error) + func (st *Storage) ListProfiles(ctx context.Context, pids []profile.ID) (storage.ProfileList, error) + func (st *Storage) ListServices(ctx context.Context) ([]string, error) + func (st *Storage) WriteProfile(ctx context.Context, params *storage.WriteProfileParams, r io.Reader) (profile.Meta, error)