Skip to content
Snippets Groups Projects
Commit 4c515221 authored by Josh Brooks's avatar Josh Brooks
Browse files

Clean formatting and fix pipeline

parent 18f395aa
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,8 @@ import ( ...@@ -28,6 +28,8 @@ import (
//interface to increase east of testing of historical rounds //interface to increase east of testing of historical rounds
type historicalRoundsComms interface { type historicalRoundsComms interface {
GetHost(hostId *id.ID) (*connect.Host, bool) GetHost(hostId *id.ID) (*connect.Host, bool)
AddHost(hid *id.ID, address string, cert []byte, params connect.HostParams) (host *connect.Host, err error)
RemoveHost(hid *id.ID)
RequestHistoricalRounds(host *connect.Host, RequestHistoricalRounds(host *connect.Host,
message *pb.HistoricalRounds) (*pb.HistoricalRoundsResponse, error) message *pb.HistoricalRounds) (*pb.HistoricalRoundsResponse, error)
} }
......
...@@ -21,6 +21,8 @@ import ( ...@@ -21,6 +21,8 @@ import (
type messageRetrievalComms interface { type messageRetrievalComms interface {
GetHost(hostId *id.ID) (*connect.Host, bool) GetHost(hostId *id.ID) (*connect.Host, bool)
AddHost(hid *id.ID, address string, cert []byte, params connect.HostParams) (host *connect.Host, err error)
RemoveHost(hid *id.ID)
RequestMessages(host *connect.Host, RequestMessages(host *connect.Host,
message *pb.GetMessages) (*pb.GetMessagesResponse, error) message *pb.GetMessages) (*pb.GetMessagesResponse, error)
} }
......
...@@ -39,10 +39,19 @@ const ReturningGateway = "GetMessageRequest" ...@@ -39,10 +39,19 @@ const ReturningGateway = "GetMessageRequest"
const FalsePositive = "FalsePositive" const FalsePositive = "FalsePositive"
const PayloadMessage = "Payload" const PayloadMessage = "Payload"
const ErrorGateway = "Error" const ErrorGateway = "Error"
type mockMessageRetrievalComms struct { type mockMessageRetrievalComms struct {
testingSignature *testing.T testingSignature *testing.T
} }
func (mmrc *mockMessageRetrievalComms) AddHost(hid *id.ID, address string, cert []byte, params connect.HostParams) (host *connect.Host, err error) {
panic("implement me")
}
func (mmrc *mockMessageRetrievalComms) RemoveHost(hid *id.ID) {
panic("implement me")
}
func (mmrc *mockMessageRetrievalComms) GetHost(hostId *id.ID) (*connect.Host, bool) { func (mmrc *mockMessageRetrievalComms) GetHost(hostId *id.ID) (*connect.Host, bool) {
h, _ := connect.NewHost(hostId, "0.0.0.0", []byte(""), connect.HostParams{ h, _ := connect.NewHost(hostId, "0.0.0.0", []byte(""), connect.HostParams{
MaxRetries: 0, MaxRetries: 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment