listener

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 11 Imported by: 1

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"`
	Version    string      `json:"version,omitempty"`
	BuildDate  string      `json:"build_date,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