restapi

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenOnAddr

func ListenOnAddr(e *echo.Echo, listen string) error

func ListenOnSocket

func ListenOnSocket(e *echo.Echo, file string) error

func SecureWithAPIKey

func SecureWithAPIKey(e *echo.Echo, secret string)

SecureWithAPIKey secures the api with a secret access token The access token needs to be passed in Authorization Header with value Bearer <secret> For invalid key, it sends “401 - Unauthorized” response. For missing key, it sends “400 - Bad Request” response.

func Setup

func Setup(handlers *APIConfig) *echo.Echo

Types

type APIConfig

type APIConfig struct {
	SDKClient actionsdk.SDKClient
}

Jump to

Keyboard shortcuts

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