Skip to content

Commit

Permalink
update protoc dependencies (#5)
Browse files Browse the repository at this point in the history
* update to go mod

* update proto dependencies
  • Loading branch information
jnewmano authored May 13, 2022
1 parent a18ccc0 commit 069fe1a
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 77 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/jnewmano/mqtt-nsq
go 1.16

require (
github.com/golang/protobuf v0.0.0-20170712042213-0a4f71a498b7
github.com/golang/protobuf v1.5.0
github.com/golang/snappy v0.0.0-20170215233205-553a64147049 // indirect
github.com/namsral/flag v1.7.4-pre.0.20170617221208-f522f7fa7009
github.com/nsqio/go-nsq v1.0.7-0.20170604180819-973bf9a2952f
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
google.golang.org/protobuf v1.28.0
)
13 changes: 9 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
github.com/golang/protobuf v0.0.0-20170712042213-0a4f71a498b7 h1:ulJ2cj/xlDlrwLCvWH4UeV9vJ/jXP6wEGgTSF7EOnmQ=
github.com/golang/protobuf v0.0.0-20170712042213-0a4f71a498b7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/snappy v0.0.0-20170215233205-553a64147049 h1:K9KHZbXKpGydfDN0aZrsoHpLJlZsBrGMFWbgLDGnPZk=
github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/namsral/flag v1.7.4-pre.0.20170617221208-f522f7fa7009 h1:y92UXHKXTaTmhrVbWbg9cbqUi6/yriT/GghNTISoqqY=
github.com/namsral/flag v1.7.4-pre.0.20170617221208-f522f7fa7009/go.mod h1:OXldTctbM6SWH1K899kPZcf65KxJiD7MsceFUpB5yDo=
github.com/nsqio/go-nsq v1.0.7-0.20170604180819-973bf9a2952f h1:5iQt8hTVGYDHwy+aPFCAL7SZQVS7qR8Fcaq1koXVtz0=
github.com/nsqio/go-nsq v1.0.7-0.20170604180819-973bf9a2952f/go.mod h1:XP5zaUs3pqf+Q71EqUJs3HYfBIqfK6G83WQMdNN+Ito=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
3 changes: 3 additions & 0 deletions nsqexporter/generate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

protoc --go_out=. --go_opt=paths=source_relative message.proto
227 changes: 158 additions & 69 deletions nsqexporter/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion nsqexporter/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ syntax = "proto3";

package nsqexporter;

import "github.com/golang/protobuf/ptypes/timestamp/timestamp.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/jnewmano/mqtt-nsq/nsqexporter;nsqexporter";

message MQTTMessage {

Expand Down
1 change: 0 additions & 1 deletion nsqexporter/nsq.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package nsqexporter

//go:generate protoc -I=./ -I=$GOPATH/src --go_out=./ ./message.proto
/*
type Handler interface {
HandleMessage(message *nsq.Message) error
Expand Down

0 comments on commit 069fe1a

Please sign in to comment.