meta

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package meta provides META-API for the resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewV1Router

func NewV1Router(e *echo.Echo, f *fish.Fish)

NewV1Router creates router for META-APIv1

Types

type H

type H map[string]any

H is a shortcut for map[string]any

type Processor

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

Processor doing processing of the META-API request

func (*Processor) AddressAuth

func (e *Processor) AddressAuth(next echo.HandlerFunc) echo.HandlerFunc

AddressAuth middleware to ensure META-API will not be used by crocodile

func (*Processor) DataGet

func (e *Processor) DataGet(c echo.Context, _ string, _ types.DataGetParams) error

DataGet should return specific key value from the Resource metadata

func (*Processor) DataGetList

func (e *Processor) DataGetList(c echo.Context, _ types.DataGetListParams) error

DataGetList returns metadata assigned to the Resource

func (*Processor) Return

func (*Processor) Return(c echo.Context, code int, obj map[string]any) error

Return middleware which processes the return data and represents it as requestor want to see it

Jump to

Keyboard shortcuts

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