api

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler contains the API handlers

func NewHandler

func NewHandler(f *facilitator.Facilitator) *Handler

NewHandler creates a new API handler

func (*Handler) GetSupported

func (h *Handler) GetSupported(c *gin.Context)

GetSupported handles the /facilitator/supported endpoint

func (*Handler) Health

func (h *Handler) Health(c *gin.Context)

Health handles the /health endpoint

func (*Handler) Ready

func (h *Handler) Ready(c *gin.Context)

Ready handles the /ready endpoint

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(router *gin.Engine)

RegisterRoutes registers all API routes

func (*Handler) Settle

func (h *Handler) Settle(c *gin.Context)

Settle handles the /facilitator/settle endpoint

func (*Handler) Verify

func (h *Handler) Verify(c *gin.Context)

Verify handles the /facilitator/verify endpoint

type Server

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

Server represents the HTTP server

func NewServer

func NewServer(cfg *config.Config, f *facilitator.Facilitator) *Server

NewServer creates a new HTTP server

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the HTTP server gracefully

Jump to

Keyboard shortcuts

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