mixpanelproxy

package module
v0.0.0-...-d3588f5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

README

Mixpanel plugin for PacketFence

This is a plugin used by the PacketFence team to gather anonymous analytics data and forward it to Mixpanel.

Usage

Example Caddyfile

{
  order mixpanel_proxy before reverse_proxy
}

analytics.zammitcorp.com {
  mixpanel_proxy

  reverse_proxy https://api.mixpanel.com
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MixpanelProxy

type MixpanelProxy struct {
	MixpanelKey string `json:"mixpanel_key"`
}

MixpanelProxy implements an HTTP handler that dynamically adds the key to a mixpanel payload

func (MixpanelProxy) CaddyModule

func (MixpanelProxy) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (MixpanelProxy) MassageRequestBody

func (m MixpanelProxy) MassageRequestBody(r *http.Request) error

func (*MixpanelProxy) Provision

func (m *MixpanelProxy) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (MixpanelProxy) ServeHTTP

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*MixpanelProxy) UnmarshalCaddyfile

func (m *MixpanelProxy) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile - this is a no-op

Jump to

Keyboard shortcuts

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