alkasir: github.com/alkasir/alkasir/pkg/central Index | Files | Directories

package central

import "github.com/alkasir/alkasir/pkg/central"

the central package contains alkasir-central specific code like its main entrypoint.

public/partner api, runs on own port because the need to route through different networks.

Index

Package Files

api-common.go api.go central.go doc.go export-api.go measurements.go

func GetBlockedHostsExport Uses

func GetBlockedHostsExport(dbclients db.Clients) func(w rest.ResponseWriter, r *rest.Request)

GetBlockedHostsExport

func GetHosts Uses

func GetHosts(dbclients db.Clients) func(w rest.ResponseWriter, r *rest.Request)

Update list of blocked hosts for an IP address.

func GetSamplesExport Uses

func GetSamplesExport(dbclients db.Clients) func(w rest.ResponseWriter, r *rest.Request)

func GetSimpleSamplesExport Uses

func GetSimpleSamplesExport(dbclients db.Clients) func(w rest.ResponseWriter, r *rest.Request)

func GetUpgrade Uses

func GetUpgrade(dbclients db.Clients) func(w rest.ResponseWriter, r *rest.Request)

Update list of blocked hosts for an IP address.

func Init Uses

func Init() error

Init initializes the server.

func InitDB Uses

func InitDB() error

InitDB opens a connection to the database.

func Run Uses

func Run()

Run runs the initialized server.

func StoreSample Uses

func StoreSample(dbclients db.Clients) func(w rest.ResponseWriter, r *rest.Request)

StoreSample JSON API method.

func SuggestionToken Uses

func SuggestionToken(dbclients db.Clients) func(w rest.ResponseWriter, r *rest.Request)

SuggestionToken JSON API method.

type PreparedSample Uses

type PreparedSample struct {
    // contains filtered or unexported fields
}

PreparedSample .

func (*PreparedSample) Update Uses

func (p *PreparedSample) Update(dbclients db.Clients) error

Directories

PathSynopsis
analysis
client
db

Package central imports 38 packages (graph) and is imported by 1 packages. Updated 2016-07-21. Refresh now. Tools for package owners.