Ejemplo n.º 1
0
func init() {
	apiplexy.RegisterPlugin(
		"log-postgres",
		"Log requests to Postgres (using native JSONB).",
		"https://github.com/12foo/apiplexy/tree/master/logging",
		PostgresLoggingPlugin{},
	)
}
Ejemplo n.º 2
0
func init() {
	apiplexy.RegisterPlugin(
		"lua",
		"Run Lua scripts on incoming requests/responses.",
		"https://github.com/12foo/apiplexy/tree/master/misc/lua.md",
		LuaPlugin{},
	)
}
Ejemplo n.º 3
0
func init() {
	apiplexy.RegisterPlugin(
		"influxdb",
		"Log requests to InfluxDB.",
		"https://github.com/12foo/apiplexy/tree/master/logging",
		InfluxDBLoggingPlugin{},
	)
}
Ejemplo n.º 4
0
Archivo: ua.go Proyecto: 12foo/apiplexy
func init() {
	// _ = apiplexy.LoggingPlugin(&UADetectionPlugin{})
	apiplexy.RegisterPlugin(
		"ua-detect",
		"Detect user-agents, i.e. the user's browser.",
		"http://github.com/12foo/apiplexy/tree/master/logging",
		UADetectionPlugin{},
	)
}
Ejemplo n.º 5
0
func init() {
	// _ = apiplexy.BackendPlugin(&SQLKeyBackend{})
	apiplexy.RegisterPlugin(
		"sql-query",
		"Perform simple key checks via query against a backend SQL database.",
		"https://github.com/12foo/apiplexy/tree/master/backend/sql",
		SQLKeyBackend{},
	)
}
Ejemplo n.º 6
0
func init() {
	// _ = apiplexy.AuthPlugin(&HMACAuthPlugin{})
	apiplexy.RegisterPlugin(
		"hmac",
		"Authenticate requests via HMAC.",
		"https://github.com/12foo/apiplexy/tree/master/auth/hmac",
		HMACAuthPlugin{},
	)
}
Ejemplo n.º 7
0
func init() {
	// _ = apiplexy.LoggingPlugin(&IPLocatorPlugin{})
	apiplexy.RegisterPlugin(
		"geolocation",
		"Resolve IPs to their geographical location (using GeoLite2).",
		"http://github.com/12foo/apiplexy/tree/master/logging",
		IPLocatorPlugin{},
	)
}
Ejemplo n.º 8
0
func init() {
	// _ = apiplexy.ManagementBackendPlugin(&SQLDBBackend{})
	apiplexy.RegisterPlugin(
		"sql-full",
		"Use popular SQL databases as backend stores (with full user/key management).",
		"https://github.com/12foo/apiplexy/tree/master/backend/sql",
		SQLDBBackend{},
	)
}
Ejemplo n.º 9
0
func init() {
	// _ = apiplexy.LoggingPlugin(&ElasticsearchPlugin{})
	apiplexy.RegisterPlugin(
		"elasticsearch",
		"Log API requests to ElasticSearch.",
		"https://github.com/12foo/apiplexy/tree/master/logging",
		ElasticsearchPlugin{},
	)
}