Skip to content

Tags: totoval/framework

Tags

v0.11.7

Toggle v0.11.7's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
toby1991 Toby
* fix: BigInt,BigFloat unmarshal json error when data is string

v0.11.6

Toggle v0.11.6's commit message
* fix: user cannot logout properly as token revoke function has logic…

… problem

v0.11.5

Toggle v0.11.5's commit message
* fix: [biu] contentType fetch issue when it has multi value

* feat: [framework] upgrade some package

v0.11.4

Toggle v0.11.4's commit message
* Fix: bigfloat div decimal

* Feat: Change rounding result by given decimal

v0.11.3

Toggle v0.11.3's commit message
* feat: Add Channel feature to websocket by using BroadcastTo in handler

* fix: Websocket connectionHub mutex issue

v0.11.2

Toggle v0.11.2's commit message
* Update consumer error log for human readable

v0.11.1

Toggle v0.11.1's commit message
* Feat: add isInf param option for BigFloat Div func

v0.11.0

Toggle v0.11.0's commit message
* Feat: Websocket support

* Feat: Name route support
* Feat: Make Totoval more compatible with multi port serve
* Feat: Add Totoval monitor
* Feat: Change request.Context from struct to interface

* Fix: move RequestUser from controller to Context
* Fix: An User getter issue in controller which may cause each request's data cross using by different request.
* Fix: A bug of view binding

Migration:
1. `func (d *Dashboard) Index(c *request.Context) {` -> `func (d *Dashboard) Index(c request.Context) {`

2. middleware
```go
func BasicAuth(accounts map[string]string) request.HandlerFunc {
	return func(c request.Context) {
		gin.BasicAuth(accounts)(c.Context)
	}
}
```
|
v
```go
func BasicAuth(accounts map[string]string) request.HandlerFunc {
	return func(c request.Context) {
		gin.BasicAuth(accounts)(c.GinContext())
	}
}
```

3. `func(c request.Context) {`:`c.Request.` -> `c.Request().`
4. `func(c request.Context) {`:`c.Params` -> `c.Params()`
5. set `c.Writer`, use `c.SetWriter()`
6. set `c.Request`, use `c.SetRequest()`
7. replace `.Scan(c)` in controller, user `c.ScanUserWithJSON()`, `c` is the `Context`
8. replace `.User().Value()` in controller, use `c.User().Value()`, `c` is the `Context`

v0.11.0-alpha.5

Toggle v0.11.0-alpha.5's commit message
* Add Broadcast func to Websocket

v0.11.0-alpha.4

Toggle v0.11.0-alpha.4's commit message
1. Add Totoval monitor

2. Move RequestUser from controller to Context

Migration:
7. replace `.Scan(c)` in controller, user `c.ScanUserWithJSON()`, `c` is the `Context`
8. replace `.User().Value()` in controller, use `c.User().Value()`, `c` is the `Context`