server

package
v0.0.0-...-ec109f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

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) Close

func (s *UserMetaServer) Close()

Close the underlying database.

func (*UserMetaServer) Handler

func (s *UserMetaServer) Handler() http.Handler

Handler returns a http.Handler for the HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL