Versions in this module Expand all Collapse all v0 v0.7.3 Dec 6, 2026 v0.7.2 Nov 25, 2026 v0.7.1 Nov 24, 2026 v0.7.0 Nov 22, 2026 v0.6.8 Nov 22, 2026 v0.6.7 Nov 21, 2026 v0.6.6 Nov 16, 2026 v0.6.5 Nov 11, 2026 v0.6.4 Nov 7, 2026 v0.6.3 Nov 7, 2026 v0.6.2 Nov 7, 2026 Changes in this version + const ChoiceTTL + const DefaultJournalSyncMs + const DefaultMemberTTL + const FloorDays + const FloorUnheldHours + const HallTimeout + const JournalFile + const MaxHallAnswer + const MaxJournalSyncMs + const MaxMembers + const MaxPerSeq + const MinMemberTTL + const MinSpendTable + const Name + const PerVersion + const PruneEvery + const RecentAdmissions + const RecentTurned + const TickEvery + var AdmitKinds = []string + var Build = "unversioned" + var Classes = func() []termsroute.PricedClass { ... }() + var ErrNoSubmission = errors.New(...) + var KindsReplayed = []string + var PrivateResults = []string + var Reasons = []string + var TokenStatuses = []string + func CheckNoSync(raw string) error + func ParseCrypts(raw string) ([]string, error) + func ParseHallURLs(raw string) ([]string, error) + func ParsePrivate(raw string, carried []string) (map[string]map[string]bool, error) + type Access func(ctx context.Context, crypt string) error + type Classified struct + Priced bool + Q *secrec.Question + type Config struct + Accept termsroute.AcceptConfig + Budget termsroute.BudgetConfig + Crypts []string + HallURLs []string + HeadersURL string + JournalSync time.Duration + Listen string + MaxBEEF int + MaxSweepInputs int + MemberTTL time.Duration + PayeeKey *ec.PrivateKey + Prices map[string]uint64 + Private map[string]map[string]bool + Response termsroute.ResponseBudgetConfig + RetentionDays int + Sessions termsroute.SessionBound + SpendTable int + StateDir string + UnheldHours int + func ParseConfig(getenv func(string) string) (*Config, error) + type Counts struct + Carriers int + PendingDeletes int + PendingTokens int + Rows int + Sweeps int + Table int + Tokens int + Vaults int + type Deleter interface + DeleteOutput func(ctx context.Context, outpoint *transaction.Outpoint, topic string) error + type FileJournal struct + OnSync func(lines int, took time.Duration, err error) + Path string + SyncEvery time.Duration + func NewFileJournal(dir string) (*FileJournal, error) + func (j *FileJournal) Append(l Line) error + func (j *FileJournal) Close() error + func (j *FileJournal) Load() ([]Line, error) + func (j *FileJournal) Sync() error + type Formula struct + Context []byte + Txid string + Vout uint32 + type Front struct + Addr string + type Journal interface + Append func(l Line) error + Load func() ([]Line, error) + type Line struct + At *int64 + C string + Crypt string + H *int64 + K string + Op string + S string + Txid string + Vout *int64 + W *bool + type Members struct + func NewMembers(o MembersOptions) *Members + func (m *Members) Any() bool + func (m *Members) Check(ctx context.Context, crypt string) error + func (m *Members) IsPrivate(crypt string) bool + func (m *Members) Prime(ctx context.Context, identity string) + func (m *Members) Size() int + type MembersOptions struct + Client *http.Client + Crypts map[string]map[string]bool + HallURLs []string + Halls func(crypt, org string) []string + Host bmodule.Host + Now func() time.Time + TTL time.Duration + type MemoryJournal struct + Lines []Line + func (m *MemoryJournal) Append(l Line) error + func (m *MemoryJournal) Load() ([]Line, error) + type Mounted struct + Front *Front + LS *Service + Members *Members + Module bmodule.Module + func Mount(host bmodule.Host, c *Config, overlayTopics []string, journal Journal, ...) (*Mounted, error) + func New(host bmodule.Host, getenv func(string) string) (*Mounted, error) + func (m *Mounted) Close() error + func (m *Mounted) Start(ctx context.Context) error + type Options struct + Access Access + Crypts []string + Headers chaintracker.ChainTracker + Host bmodule.Host + Journal Journal + MaxBEEF int + MaxSweepInputs int + Now func() time.Time + Priced map[string]bool + RetentionDays int + SpendTable int + Trees replay.TreeSource + UnheldHours int + type OutpointRowView struct + Dropped bool + More uint64 + Others []string + Sweeps []string + Winner string + type OutputList struct + Outputs []outputJSON + Type string + type Refused struct + Detail string + Reason string + func (r *Refused) Error() string + type RouteAnswerer struct + LS *Service + func (r RouteAnswerer) Answer(ctx context.Context, q termsroute.Question) (any, error) + func (r RouteAnswerer) Classify(ctx context.Context, q termsroute.Question) (string, error) + func (r RouteAnswerer) Restored() bool + type Service struct + func NewService(o Options) (*Service, error) + func (*Service) AdmissionMode() bmodule.AdmissionMode + func (*Service) GetDocumentation() string + func (*Service) GetMetaData() *overlay.MetaData + func (*Service) SpendNotificationMode() bmodule.SpendNotificationMode + func (s *Service) Answer(ctx context.Context, c *Classified, paid bool) ([]Formula, error) + func (s *Service) Classify(ctx context.Context, service string, query []byte) (*Classified, error) + func (s *Service) Counts() Counts + func (s *Service) HallsOf(crypt, org string) []string + func (s *Service) Holds(c string) bool + func (s *Service) Hydrate(ctx context.Context, formulas []Formula) ([]bmodule.HydratedOutput, error) + func (s *Service) Lookup(ctx context.Context, q *lookup.LookupQuestion) (*lookup.LookupAnswer, error) + func (s *Service) OutpointRow(op string) (OutpointRowView, bool) + func (s *Service) OutputAdmittedByTopic(ctx context.Context, p *bmodule.OutputAdmittedByTopic) error + func (s *Service) OutputEvicted(_ context.Context, outpoint *transaction.Outpoint) error + func (s *Service) OutputNoLongerRetainedInHistory(_ context.Context, outpoint *transaction.Outpoint, topic string) error + func (s *Service) Prune(ctx context.Context) int + func (s *Service) Replay(ctx context.Context, r *bmodule.ReplayRequest) (*bmodule.ReplayAnswer, error) + func (s *Service) Restore(ctx context.Context, outputs []bmodule.Output, storage bmodule.RestoreStorage) (int, error) + func (s *Service) Restored() bool + func (s *Service) Rooted(txid string) bool + func (s *Service) Status(ctx context.Context, c string) (string, bool) + func (s *Service) TokenStatus(txid string) (string, bool) + type TopicManager struct + Crypt string + Topic string + func NewTopicManager(topic string, host bmodule.Host, headers chaintracker.ChainTracker, ...) (*TopicManager, error) + func (t *TopicManager) Admit(ctx context.Context, raw []byte, held []int) (overlay.AdmittanceInstructions, error) + func (t *TopicManager) GetDocumentation() string + func (t *TopicManager) GetMetaData() *overlay.MetaData + func (t *TopicManager) IdentifyAdmissibleOutputs(ctx context.Context, _ *transaction.Beef, _ *chainhash.Hash, ...) (overlay.AdmittanceInstructions, error)