api

package
v0.3.4-0...-6d48ce5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CitiesHandler

func CitiesHandler(writer http.ResponseWriter, request *http.Request)

CitiesHandler returns a listing of cities and their time zone

func PlanningHandler

func PlanningHandler(writer http.ResponseWriter, request *http.Request)

PlanningHandler reads an eventime.EventInfo from the request and returns a eventime.ByGMT in the response

func SetZoneInfo

func SetZoneInfo(zi *eventime.ZoneInfo) error

func SlackHandler

func SlackHandler(writer http.ResponseWriter, request *http.Request)

SlackHandler parses a eventime.EventInfo from the request and returns an eventime.ByGMT in the response

Types

type SlackRequest

type SlackRequest struct {
	Text string `json:"text"`

	eventime.EventInfo
	// contains filtered or unexported fields
}

func NewSlackRequest

func NewSlackRequest(data io.Reader) (*SlackRequest, error)

func (*SlackRequest) Parse

func (slack *SlackRequest) Parse() error

type SlackResponse

type SlackResponse struct {
	Blocks []block `json:"blocks"`
}

func NewSlackResponse

func NewSlackResponse(cities eventime.ByGMT) SlackResponse

Jump to

Keyboard shortcuts

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