example

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package example holds the plugin's backend logic. Structure it like a mini app (services, models, queries) — the plugin is a self-contained unit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is the plugin's backend service, built from the kernel.

func New

func New(k *togo.Kernel) *Service

New constructs the service.

func (*Service) Ping

func (s *Service) Ping(w http.ResponseWriter, r *http.Request)

Ping is a sample endpoint (GET /api/example/ping).

Jump to

Keyboard shortcuts

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