server

package
v0.0.0-...-12f57bc Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routes = map[string]string{
	"/v1/identify": "identify",
	"/v1/group":    "group",
	"/v1/alias":    "alias",
	"/v1/page":     "page",
	"/v1/screen":   "screen",
	"/v1/track":    "track",
	"/v1/batch":    "batch",
	"/v1/import":   "batch",
}

Routes.

Functions

func New

func New(t *tracker.Tracker) http.Handler

New returns a new Server.

Types

type Response

type Response struct {
	Success bool   `json:"success"`
	Message string `json:"message,omitempty"`
}

Response

type Server

type Server struct {
	*app.App
	// contains filtered or unexported fields
}

Server structure.

Jump to

Keyboard shortcuts

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