Documentation
¶
Index ¶
- Constants
- Variables
- type Inertia
- func (i *Inertia) DisableSsr()
- func (i *Inertia) EnableSsr(ssrURL string)
- func (i *Inertia) EnableSsrWithDefault()
- func (i *Inertia) IsSsrEnabled() bool
- func (i *Inertia) Location(ctx *fiber.Ctx, url string) error
- func (i *Inertia) Middleware(next *fiber.Ctx) error
- func (i *Inertia) Render(ctx *fiber.Ctx, component string, props fiber.Map) error
- func (i *Inertia) Share(key string, value interface{})
- func (i *Inertia) WithProp(ctx context.Context, key string, value interface{}) context.Context
- func (i *Inertia) WithViewData(ctx context.Context, key string, value interface{}) context.Context
- type Page
- type Ssr
Constants ¶
View Source
const ContextKeyProps = contextKey("props")
ContextKeyProps key.
View Source
const ContextKeyViewData = contextKey("viewData")
ContextKeyViewData key.
Variables ¶
View Source
var ( // ErrInvalidContextProps error. ErrInvalidContextProps = errors.New("inertia: could not convert context props to map") // ErrInvalidContextViewData error. ErrInvalidContextViewData = errors.New("inertia: could not convert context view data to map") // ErrBadSsrStatusCode error. ErrBadSsrStatusCode = errors.New("inertia: bad ssr status code >= 400") )
Functions ¶
This section is empty.
Types ¶
type Inertia ¶
type Inertia struct {
// contains filtered or unexported fields
}
Inertia type.
func (*Inertia) EnableSsrWithDefault ¶
func (i *Inertia) EnableSsrWithDefault()
EnableSsrWithDefault function.
func (*Inertia) Middleware ¶
Middleware function.
Click to show internal directories.
Click to hide internal directories.