Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DBURI string `yaml:"db_uri"` CompactionKeepCount int `yaml:"compaction_keep_count"` MaxAgeDays int `yaml:"max_age_days"` IgnoredUsers []string `yaml:"ignored_users"` }
Config for the UserMetaServer.
type UserMetaServer ¶
type UserMetaServer struct {
// contains filtered or unexported fields
}
UserMetaServer exposes the analysis service and the user metadata database over an HTTP API.
func New ¶
func New(config *Config) (*UserMetaServer, error)
New returns a new UserMetaServer with the given configuration.
func (*UserMetaServer) Handler ¶
func (s *UserMetaServer) Handler() http.Handler
Handler returns a http.Handler for the HTTP API.
Click to show internal directories.
Click to hide internal directories.