You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ntfy.go
    path of file: ./repos/evcc/push
    
    the code of the file until where you have to start completion: package push

import (
	"errors"
	"net/http"
	"strings"

	"github.com/evcc-io/evcc/util"
	"github.com/evcc-io/evcc/util/request"
)

func init() {
	registry.Add("ntfy", NewNtfyFromConfig)
}

// Ntfy implements the ntfy messaging aggregator
type Ntfy struct {
	log      *util.Logger
	uri      string
	priority string
	tag
    
func NewNtfyFromConfig(other map[string]interface{}) (Messenger, error) {
	var cc struct {
		URI      string
		Priority string
		Tags     string
	}

	if err := util.DecodeOther(other, &cc); err != nil {
		return nil, err
	}

	if cc.URI == "" {
		return nil, errors.New("missing uri")
	}

	log := util.NewLogger("ntfy")
	if token, ok := strings.CutPrefix(cc.URI, "https://ntfy.sh/"); ok {
		log = log.Redact(token)
	}

	m := &Ntfy{
		log:      log,
		uri:      cc.URI,
		priority: cc.Priority,
		tags:     cc.Tags,
	}

	return m, nil
}