Skip to content

Releases: devimteam/microgen

v0.9.2

15 Oct 11:31
Compare
Choose a tag to compare
fix DoubleValue known converter

v0.9.1

15 Oct 09:16
Compare
Choose a tag to compare
add special type for `*float64` and ignore fix bug when using []time.…

v0.9.0: Merge pull request #60 from devimteam/feature/58

01 Aug 15:55
69bb178
Compare
Choose a tag to compare

0.8.0

12 Mar 09:06
Compare
Choose a tag to compare
  • Generate // TODO: comments after panics.
  • Style changes to ./middleware/logging.go, ./endpoints.go and ./exchanges.go.
  • Add generation of opentracing #53 :
    • Serves server and client side by wrapping endpoints.
    • Passes spans to headers/meta for http and grpc transports.
  • Add cache middleware #54 :
    • Generates Cache interface:
    type Cache interface {
        Set(key, value interface{}) (err error)
        Get(key interface{}) (value interface{}, err error)
    }
    • Service methods will use first argument as key and all results as value.
    • Or you may add code, which will replace 'key'.
      // @cache-key createdAt.UTC()
    • Useful on client and server sides.
    • You should write your own, or adapt existing storage (e.g. sync.Map).
    type InMemoryCache struct {
    	sync.Map
    }
    
    func (c *InMemoryCache) Set(key, value interface{}) error {
    	c.Store(key, value)
    	return nil
    }
    
    func (c *InMemoryCache) Get(key interface{}) (interface{}, error) {
    	value, _ := c.Load(key) // remember about _
    	return value, nil
    }

0.7.0: Merge pull request #51 from devimteam/develop

30 Jan 10:02
c5c574c
Compare
Choose a tag to compare
  • Verbose levels for logs
  • Refactor HTTP client and server generation:
    • Change HTTP method by using // @http-method tag (it generates POST by default)
    • Server side uses Gorilla mux
    • For GET method use params as url variables (http://localhost.com/count/{text}/{symbol})
    • Some changes in decoders and encoders
  • Update logging middleware
    • Separate request and response
  • Use wrappers.StringValue for grpc transport exchange type if method have one *string argument (result), except context.Context (error)
  • Error-Logging middleware: logs only errors if they not nil
  • Fix #44

0.6.0

08 Dec 10:40
Compare
Choose a tag to compare

0.5.0

28 Nov 16:46
01fc3e5
Compare
Choose a tag to compare

Contains:

  • recover middleware
  • allow ellipsis and interface params in methods
  • feat/fix #24, #26, #28
  • update Readme.md

0.4.0

17 Nov 09:01
Compare
Choose a tag to compare

Add http generation, @logs-len tag for methods