Skip to content

Commit

Permalink
query: fixes + adding repository and service
Browse files Browse the repository at this point in the history
  • Loading branch information
Witold Konior committed Jul 19, 2019
1 parent c294aec commit abd7174
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 95 deletions.
35 changes: 0 additions & 35 deletions collector/bbolt.go

This file was deleted.

1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
Expand Down
17 changes: 17 additions & 0 deletions query/mocks/repository.go

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

119 changes: 59 additions & 60 deletions query/query.pb.go

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

7 changes: 7 additions & 0 deletions query/repository.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package query

import "github.com/jozuenoon/message_bus/pkg/types"

type Repository interface {
GetDetectors(latitude, longitude types.DecimalDegrees, radius int64)
}
20 changes: 20 additions & 0 deletions query/service.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package query

import "context"

var _ QueryServiceServer = (*service)(nil)

type service struct {}

func (s *service) StreamEvents(*GetEventsRequest, QueryService_StreamEventsServer) error {
panic("implement me")
}

func (s *service) GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error) {
panic("implement me")
}


func (s *service) GetBatteryVoltage(context.Context, *GetBatteryVoltageRequest) (*GetBatteryVoltageResponse, error) {
panic("implement me")
}

0 comments on commit abd7174

Please sign in to comment.