package
0.0.0-20241029013314-06af37cb7d44
Repository: https://github.com/rogue-syntax/rs-goapiserver.git
Documentation: pkg.go.dev

# Functions

RouteHandler - takes the url route, http request and writer - processes them though a slice of RequestMiddleware using its ProcessRequest function - passes a requestContext though these middleware functions, carryting a context object through to our requesthandlers - example : RouteHandler("/v1/someRoute", SomeFunction, [] ).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

////////////////// BLANK MIDDLEWARE.
DEV MIDDLEWARE - 1.
No description provided by the author
////////////////////// REQUEST VERIFICATION - Get User in handler with : usr, err := apicontext.CtxGetUser(ctx).
////////////////////////////////// ROLE BASED REQUEST VERIFICATION.
RouteDef: A Struct for defining routes - RouteStr: The endpoint where route can be reached , i.e.
///////////////////// WEBHOOK MW.

# Interfaces

Request Middleware - interface for all middleware handlers.

# Type aliases

Eventual Handler: Signtaure type for route handling function - To be eventually called after middleware ProcessRequest(s) have been executed */.