models

package
v0.0.0-...-d411e7a Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

type Webhook struct {
	Url        string `json:"url"`
	HttpMethod string `json:"httpMethod"`
}

func CreateWebhook

func CreateWebhook(url string, httpMethod string) (Webhook, error)

type Webhooks

type Webhooks []Webhook

func (Webhooks) FindIndexOf

func (list Webhooks) FindIndexOf(webhook Webhook) int

func (Webhooks) RemoveIndex

func (list Webhooks) RemoveIndex(index int) (Webhooks, error)

inspired by: https://stackoverflow.com/a/37335777/

Jump to

Keyboard shortcuts

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