response

package
v0.0.0-...-3b4d91b Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS  = "OK"
	FAILURE  = "FAIL"
	PONG     = "PONG"
	LIFETIME = 1800
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

type Observer interface {
	Notify()
}

type Ping

type Ping struct {
	Success string       `json:"success"`
	Summary *PingSummary `json:"summary"`
}

func NewPing

func NewPing() *Ping

func (*Ping) Notify

func (p *Ping) Notify()

type PingSummary

type PingSummary struct {
	Service string `json:"service"`
	Storage string `json:"storage"`
}

func NewPingSummary

func NewPingSummary() *PingSummary

func (*PingSummary) TurnServiceOnline

func (ps *PingSummary) TurnServiceOnline()

func (*PingSummary) TurnStorageOnline

func (ps *PingSummary) TurnStorageOnline()

type Session

type Session struct {
	Id       string            `json:"id"`
	Data     map[string]string `json:"data"`
	Lifetime int               `json:"lifetime"`
	Expires  int64             `json:"expires"`
	Domain   string            `json:"domain"`
}

func NewSession

func NewSession(id string, lifetime int) *Session

func (*Session) GenerateId

func (s *Session) GenerateId()

Jump to

Keyboard shortcuts

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