listener

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartListener

func StartListener(host string, port int)

StartListener for starting the gin server on given host:port

Types

type Response

type Response struct {
	StatusCode int         `json:"status_code"`
	Ok         bool        `json:"ok"`
	Message    string      `json:"message,omitempty"`
	Data       interface{} `json:"data,omitempty"`
}

Response defines the json structure to return as response after webhook call.

Jump to

Keyboard shortcuts

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