Skip to content

Releases: totoval/framework

Websocket (v0.11.0)

02 Aug 08:46
Compare
Choose a tag to compare

Websocket

  • Feat: Websocket support

  • Feat: Name route support

  • Feat: Log now support interface{} for the first param

  • 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

func BasicAuth(accounts map[string]string) request.HandlerFunc {
	return func(c request.Context) {
		gin.BasicAuth(accounts)(c.Context)
	}
}

|
v

func BasicAuth(accounts map[string]string) request.HandlerFunc {
	return func(c request.Context) {
		gin.BasicAuth(accounts)(c.GinContext())
	}
}
  1. func(c request.Context) {:c.Request. -> c.Request().
  2. func(c request.Context) {:c.Params -> c.Params()
  3. set c.Writer, use c.SetWriter()
  4. set c.Request, use c.SetRequest()
  5. replace .Scan(c) in controller, user c.ScanUserWithJSON(), c is the Context
  6. replace .User().Value() in controller, use c.User().Value(), c is the Context

Hello World (v0.10.3)

25 Jul 03:13
Compare
Choose a tag to compare

Totoval v0.10.3 is the first production use majoy release.

Here comes the features:

  • Env Configuration
  • Groupable Router
  • Request Middleware
  • Request Validator
  • Database Migration
  • Model Validator
  • Model Helper - such as Pagination
  • BigInt,BigFloat Support
  • Orm: Mysql
  • User Token JWT Support
  • Random Code Generate and Verification
  • Random String Helper
  • Locale Middleware
  • Gin Validator Upgrade to v9
  • Password Encryption
  • Validation Error Multi-Language Support
  • Request Logger Middleware
  • Infinity User Affiliation System
  • User Email Validation via Notification
  • Views Support
  • Language Package
  • Cache: Memory
  • Cache: Redis
  • Queue, Worker nsq
  • Event, Listener
  • Custom Artisan Command Line
  • Task Scheduling
  • Logo
  • Http Request Package biu
  • Error Notifier sentry
  • User Authorization
  • Multi Ports Serving
  • Model Mutator Getter/Setter

For more docs about the features above, please see Totoval Docs.

v0.1.0-nightly

01 Mar 11:57
Compare
Choose a tag to compare
v0.1.0-nightly Pre-release
Pre-release

Features

  • Add JWT middleware support
  • Add i18n support

Fixs

  • Fix model.Exist method ptr param bug
  • Modify model pagination process method

v0.1.0 database mysql ready

01 Mar 02:12
Compare
Choose a tag to compare
Pre-release

Features

  • Env Configuration
  • Groupable Router
  • Request Middleware
  • Request Validator
  • Database Migration
  • Model Validator
  • Model Helper
  • BigInt,BigFloat Support
  • Orm: Mysql