GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gotify/plugin-api: The Plugin-API supported by gotify/server.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
cmd/gomod-cap
cmd/gomod-cap
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
config.go
config.go
 
 
displayer.go
displayer.go
 
 
export_ref_do_not_edit.json
export_ref_do_not_edit.json
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
messenger.go
messenger.go
 
 
plugin.go
plugin.go
 
 
storage.go
storage.go
 
 
webhook.go
webhook.go
 
 

Repository files navigation

plugin-api

Build Status GoDoc

This repository consisted of APIs used in gotify plugins.

Usage

Plugin API

https://gotify.net/docs/plugin

CLI tools

github.com/gotify/cmd/gomod-cap

Since go.mod follows a minimal version selection, packages are built with the lowest common version requirement defined in go.mod. This poses a problem when developing plugins:

If the gotify server is built with the following go.mod:

require some/package v0.1.0

But when the plugin is built, it used a newer version of this package:

require some/package v0.1.1

Since the server is built with v0.1.0 and the plugin is built with v0.1.1 of some/package, the built plugin could not be loaded due to different import package versions.

gomod-cap is a simple util to ensure that plugin go.mod files does not have higher version requirements than the main gotify go.mod file.

To resolve all incompatible requirements:

$ go run github.com/gotify/plugin-api/cmd/gomod-cap -from /path/to/gotify/server/go.mod -to /path/to/plugin/go.mod

To only check for incompatible requirements(useful in CI):

$ go run github.com/gotify/plugin-api/cmd/gomod-cap -from /path/to/gotify/server/go.mod -to /path/to/plugin/go.mod -check=true

About

The Plugin-API supported by gotify/server.

gotify.net/docs/plugin

Topics

golanggotifyplugin-api

Resources

Readme
MIT license
Activity
Custom properties

Stars

16 stars

Watchers

3 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.