customfields

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package customfields handles interacting with custom fields that you add to your licenses. These are miscellaneous fields not hard-coded by this app that are stored in the license file and are defined by a user for an app and values are chosen/provided when a license is created. These fields allow for storing data such as max user count, flags for enabling certain features, support information, or really anthing in the license file. The data stored in these fields is part of the signed data in the license so they cannot be editted by the end-user of your app for which the license is for.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(w http.ResponseWriter, r *http.Request)

Add saves a new custom field.

func DeleteDefined

func DeleteDefined(w http.ResponseWriter, r *http.Request)

DeleteDefined marks a custom field as inactive. The field will no longer be available when creating a license. The field will still be displayed when viewing already created licenses.

func GetDefined

func GetDefined(w http.ResponseWriter, r *http.Request)

GetDefined returns the list of fields for an app. You can optionally filter by active fields only.

func GetResults

func GetResults(w http.ResponseWriter, r *http.Request)

GetResults looks up the custom field values saved for a license.

func Update

func Update(w http.ResponseWriter, r *http.Request)

Update saves changes to an existing field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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