api

package
v0.0.0-...-00c6cc1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(runtime *app.Runtime, cfg *config.Config, logger *slog.Logger) (*Server, error)

func (*Server) App

func (s *Server) App() *fiber.App

func (*Server) BuildStreamedPageData

func (s *Server) BuildStreamedPageData(routePattern string, data any) (any, error)

func (*Server) ResolveRouteData

func (s *Server) ResolveRouteData(
	routePattern string,
	params map[string]string,
) (any, error)

func (*Server) ResolveSubscriptionInitial

func (s *Server) ResolveSubscriptionInitial(
	ctx context.Context,
	routePattern string,
	params map[string]string,
) (any, error)

func (*Server) SendServerDataResponse

func (s *Server) SendServerDataResponse(c fiber.Ctx, data any) error

func (*Server) ShutdownWithContext

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

func (*Server) StreamRouteDataEvents

func (s *Server) StreamRouteDataEvents(
	c fiber.Ctx,
	route string,
	routePattern string,
	params map[string]string,
) error

func (*Server) StreamStreamedData

func (s *Server) StreamStreamedData(
	c fiber.Ctx,
	route string,
	routePattern string,
	params map[string]string,
) error

func (*Server) StreamSubscriptionEvents

func (s *Server) StreamSubscriptionEvents(
	c fiber.Ctx,
	route string,
	routePattern string,
	params map[string]string,
) error

Jump to

Keyboard shortcuts

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