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: api.go
    path of file: ./repos/portmaster/compat
    
    the code of the file until where you have to start completion: package compat

import (
	"github.com/safing/portbase/api"
)

func registerAPIEndpoints() error {
	if err := api.RegisterEndpoint(api.Endpoint{
		Pat
    
func registerAPIEndpoints() error {
	if err := api.RegisterEndpoint(api.Endpoint{
		Path:        "compat/self-check",
		Read:        api.PermitUser,
		BelongsTo:   module,
		ActionFunc:  selfcheckViaAPI,
		Name:        "Run Integration Self-Check",
		Description: "Runs a couple integration self-checks in order to see if the system integration works.",
	}); err != nil {
		return err
	}

	return nil
}