Skip to content

Commit

Permalink
feat(plugin): *wildcards (#29)
Browse files Browse the repository at this point in the history
* Support for * wildcards
* Ignore the nil value returned by plugin handle
  • Loading branch information
chenjunbiao authored Aug 17, 2020
1 parent 79c05f5 commit 0e0e264
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/yomorun/yomo
go 1.14

require (
github.com/10cella/yomo-json-codec v0.2.5
github.com/10cella/yomo-json-codec v0.2.6
github.com/lucas-clemente/quic-go v0.17.1
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ github.com/10cella/yomo-json-codec v0.2.4 h1:bdOInT1MnBhXDsGBHx/fYn0CiXzKxrm5/kF
github.com/10cella/yomo-json-codec v0.2.4/go.mod h1:j4rl6bth7Bb6F8UC0SPN2XxlGGUsHGWO8LnrH5Q8RzI=
github.com/10cella/yomo-json-codec v0.2.5 h1:XTWWFVkQENaLLBTxBdXyG61UneA8SQF/YdlnyHptV/o=
github.com/10cella/yomo-json-codec v0.2.5/go.mod h1:j4rl6bth7Bb6F8UC0SPN2XxlGGUsHGWO8LnrH5Q8RzI=
github.com/10cella/yomo-json-codec v0.2.6 h1:LjJHlYtQ9nma84/Tbo56lessv5ojHKP3nGTuj6v4Z08=
github.com/10cella/yomo-json-codec v0.2.6/go.mod h1:j4rl6bth7Bb6F8UC0SPN2XxlGGUsHGWO8LnrH5Q8RzI=
github.com/10cella/yomo-txtkv-codec v1.0.5 h1:rVdtBcsff3RG3BEq7AHq2WvNiGDF6IEKlTiplypfX+c=
github.com/10cella/yomo-txtkv-codec v1.0.5/go.mod h1:nBfcD3qVq6kkSRHOgSUxK1+gMRoXI0obLF+b1eiyCtM=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
Expand Down
3 changes: 3 additions & 0 deletions pkg/util/quic.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ func (w YomoFrameworkStreamWriter) Write(b []byte) (c int, e error) {
}

logger.Debugf("Plugin.Handle result: %s", result) //debug:
if result == nil {
continue
}

num, err = w.Codec.Write(w.Writer, result, w.Plugin.Mold())
if err != nil {
Expand Down

0 comments on commit 0e0e264

Please sign in to comment.