lineworks

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Post

func Post(url string, timeout time.Duration, msg any) error

Post post lineworks message

Types

type Body

type Body struct {
	Text string `json:"text,omitempty"`
}

type Button

type Button struct {
	Label string `json:"label,omitempty"`
	URL   string `json:"url,omitempty"`
}

type Error

type Error struct {
	Status     string
	StatusCode int
	RetryAfter time.Duration
}

Error lineworks webhook error

func (*Error) Error

func (e *Error) Error() string

Error return error string

func (*Error) GetRetryAfter

func (e *Error) GetRetryAfter() time.Duration

type Message

type Message struct {
	Title  string `json:"title,omitempty"`
	Body   Body   `json:"body,omitzero"`
	Button Button `json:"button,omitzero"`
}

Message lineworks message

Jump to

Keyboard shortcuts

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