server

package
v0.0.0-...-8ca910c Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(dir string, getFunc fileGetter) http.Handler

func RootHandler

func RootHandler(w http.ResponseWriter, r *http.Request)

Types

type App

type App struct {
	GetFile fileGetter
	// contains filtered or unexported fields
}

func (*App) HandleEvents

func (app *App) HandleEvents(w http.ResponseWriter, r *http.Request)

func (*App) ServeHTTP

func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request)

type EventEntity

type EventEntity struct {
	EventId       int64
	Topic         string
	UserId        int64
	UserName      string
	ItemType      string
	ItemId        int64
	Item          *jason.Object
	CreatedOn     string
	ShopSubdomain string
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(reader io.Reader) (*EventEntity, error)

Jump to

Keyboard shortcuts

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