-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
query: fixes + adding repository and service
- Loading branch information
Witold Konior
committed
Jul 19, 2019
1 parent
c294aec
commit abd7174
Showing
6 changed files
with
104 additions
and
95 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |