Documentation ¶
Index ¶
- Constants
- func GetRegisterComponentsCount() int
- func HandleRouterRequest(request *router.Request) any
- func Register(component Component)
- func RegisterRoutes(r *router.Router)
- func SetupViewEngine(engine *view.Engine)
- func ValidateRequest(request *Request) bool
- type Base
- func (b *Base) Call(method string, parameters interface{}) interface{}
- func (b *Base) Get(key string) interface{}
- func (b *Base) GetCid() string
- func (b *Base) GetComponentName() string
- func (b *Base) GetData() map[string]any
- func (b *Base) GetFilePath() string
- func (b *Base) GetRawContent() string
- func (b *Base) GetState() map[string]interface{}
- func (b *Base) Render() string
- func (b *Base) RenderParsed() string
- func (b *Base) Set(data map[string]interface{})
- func (b *Base) Trigger(args ...any)
- type Component
- type Data
- type Methods
- type Request
- type Response
Constants ¶
View Source
const ASSET = "/vendor/evoli/static/component.js"
View Source
const ENDPOINT = "/internal/component"
View Source
const MOUNT = "Mount"
View Source
const UPDATE = "Update"
Variables ¶
This section is empty.
Functions ¶
func GetRegisterComponentsCount ¶
func GetRegisterComponentsCount() int
func HandleRouterRequest ¶
func RegisterRoutes ¶
func SetupViewEngine ¶
func ValidateRequest ¶
Types ¶
type Base ¶
type Base struct { Id string File string Component *use.Reflection Data *use.Collection[string, interface{}] }
func NewByNameWithData ¶
func (*Base) GetComponentName ¶
func (*Base) GetFilePath ¶
func (*Base) GetRawContent ¶
func (*Base) RenderParsed ¶
Click to show internal directories.
Click to hide internal directories.