Documentation ¶
Index ¶
Constants ¶
View Source
const ActiveClientPhrase = "yes i am wanting the activation of the anon metrics client, please thank you lots thank you"
View Source
const ActiveServerPhrase = "" /* 135-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func MakeMigration ¶
func MakeMigration(d *sql.DB, migrationResource *bindata.AssetSource) (*migrate.Migrate, error)
func NewMigratedDB ¶
Types ¶
type Client ¶
type Client struct { Config *ClientConfig DB *appmetrics.Database Identity *ecdsa.PrivateKey Logger *zap.Logger IntervalInc *FibonacciIntervalIncrementer // DBLock prevents deletion of DB items during mainloop DBLock sync.Mutex // contains filtered or unexported fields }
func NewClient ¶
func NewClient(sender *common.MessageSender) *Client
type ClientConfig ¶
type FibonacciIntervalIncrementer ¶
func (*FibonacciIntervalIncrementer) Next ¶
func (f *FibonacciIntervalIncrementer) Next() int64
type Server ¶
type Server struct { Config *ServerConfig Logger *zap.Logger PostgresDB *sql.DB }
func (*Server) GetAppMetrics ¶
func (*Server) StoreMetrics ¶
func (s *Server) StoreMetrics(appMetricsBatch protobuf.AnonymousMetricBatch) (appMetrics []*appmetrics.AppMetric, err error)
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.