Skip to content

Releases: alimy/mir

mirc/v2.0.0-alpha.3

04 Mar 13:28
Compare
Choose a tag to compare

mirc/v2.0.0-alpha.3 release

v2.0.0-alpha.3

03 Mar 14:37
Compare
Choose a tag to compare
fix cycle pkg dependents

v2.0.0-alpha.2

03 Mar 14:33
Compare
Choose a tag to compare

v2.0.0-alpha.2 release

v2.0.0-alpha.1

02 Mar 05:12
Compare
Choose a tag to compare
merge from v2

mirc/v2.0.0-alpha.2

02 Mar 07:42
Compare
Choose a tag to compare

mirc/v2.0.0-alpha.2 release

mirc/v2.0.0-alpha.1

02 Mar 05:13
Compare
Choose a tag to compare
merge from v2

mir: go.mod set go version to 1.11

08 Apr 05:25
Compare
Choose a tag to compare
v1.0.1

mir: go.mod set go version to 1.11

Support field tag string for online chain function information

21 Mar 11:13
4b9cc67
Compare
Choose a tag to compare
  • module/chi: support Router.With(...) feature backend by mir's chain func tag info
  • mir: support field tag string for online chain function information. eg:
// entry mux style URN entry
type muxEntry struct {
	chainFunc1 Get     `mir:"/chainfunc1/#-ChainFunc"`
	chainFunc2 Get     `mir:"/chainfunc2/#GetChainFunc2&ChainFunc"`
}

func (*muxEntry) ChainFunc1() string {
	return "/chainfunc1/"
}

func (*muxEntry) GetChainFunc2() string {
	return "/chainfunc2/"
}

func (*muxEntry) ChainFunc() []http.handler {
	return []http.handler{}
}

Add chi support

20 Mar 11:11
0e44409
Compare
Choose a tag to compare
  • Add new mir.Engine implement backend by go-chi

support direct assign handler to struct field when handler name is '.'

31 Jan 18:19
Compare
Choose a tag to compare
  • support direct assign handler to struct field when handler name is . defined as #.
  • support user entry's value that defined the mir tag string info as handler when handler name is . defined as #.