keeper

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Title       string  `json:"title,omitempty"`
	Origin      *string `json:"origin,omitempty"`
	Content     *string `json:"content,omitempty"`
	ContentType string  `json:"content_type,omitempty"`
}

Article is the structure definition of a Nunux Keeper article

type Provider

type Provider struct {
	APIKey string
	// contains filtered or unexported fields
}

Provider is the structure definition of a Nunux Keeper webhook provider

func (*Provider) Send

func (p *Provider) Send(ctx context.Context, article model.Article) (*webhook.Result, error)

Send article to Nunux Keeper endpoint.

type ProviderConfig

type ProviderConfig struct {
	Endpoint string `json:"endpoint"`
}

ProviderConfig is the structure definition of a Nunux Keeper API configuration

Jump to

Keyboard shortcuts

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