types

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIHandler

type APIHandler interface {
	HandleQuery(query string) string
}

APIHandler interface defines the method that all API handlers must implement

type APIInfo

type APIInfo struct {
	Name     string
	Shortcut string
	Handler  APIHandler
}

APIInfo holds information about an API

type App

type App struct {
	APIs map[string]APIHandler
}

App represents the main application structure

Jump to

Keyboard shortcuts

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