Documentation
¶
Overview ¶
Package parser implements the w_popularity adapter for the auth.marketmaker.cc registered-user count.
Endpoint: GET https://auth.marketmaker.cc/api/v1/stats/users-count
response shape: {"count": <int>}
The endpoint is public, cached on the auth side for 30s, and exposes only an aggregate count — no PII. The "handle" passed to FetchChannel is a label (e.g. "marketmaker" or "global") that's used purely for the snapshot URL/title; the API call itself is identical for any handle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MMAuthParser ¶
type MMAuthParser struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg Config) *MMAuthParser
func (*MMAuthParser) FetchChannel ¶
func (p *MMAuthParser) FetchChannel(ctx context.Context, handle string) (shared.ChannelSnapshot, error)
FetchChannel returns a snapshot whose Followers = total registered users on auth.marketmaker.cc. The `handle` parameter is recorded verbatim on the snapshot but does not influence the API call.
func (*MMAuthParser) FetchRecentPosts ¶
func (p *MMAuthParser) FetchRecentPosts(ctx context.Context, handle string, since time.Time) ([]shared.PostSnapshot, error)
FetchRecentPosts is a no-op — this is an aggregate metric, no post stream.
func (*MMAuthParser) Platform ¶
func (p *MMAuthParser) Platform() shared.Platform