feedback

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package feedback posts a user-written support message to the KeibiDrop feedback endpoint. Sent on purpose and nothing else: the message, the optional reply contact, the app version, the platform, and which surface sent it.

Index

Constants

View Source
const DefaultEndpoint = "https://keibidrop.com/feedback"

Variables

This section is empty.

Functions

func Send

func Send(r Report) error

Send posts the report. Blocks up to 10s. KEIBIDROP_FEEDBACK_URL overrides the endpoint for tests. A rating alone is a report; a message alone is a report; both is one too.

Types

type Report

type Report struct {
	Message string `json:"message"`
	Contact string `json:"contact,omitempty"`
	Version string `json:"version,omitempty"`
	Surface string `json:"surface,omitempty"`
	// Rating is 1 to 5 stars, 0 when the person gave none.
	Rating int `json:"rating,omitempty"`
}

Jump to

Keyboard shortcuts

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