-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiple services now do start. Need to adjust nats next
- Loading branch information
1 parent
5368c85
commit 003c239
Showing
18 changed files
with
184 additions
and
71 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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,30 @@ | ||
package noop | ||
|
||
import ( | ||
"encoding/json" | ||
|
||
dto_discovery "github.com/mysteriumnetwork/node/service_discovery/dto" | ||
) | ||
|
||
// Bootstrap is called on program initialization time and registers various deserializers related to opepnvpn service | ||
func Bootstrap() { | ||
dto_discovery.RegisterServiceDefinitionUnserializer( | ||
ServiceType, | ||
func(rawDefinition *json.RawMessage) (dto_discovery.ServiceDefinition, error) { | ||
var definition ServiceDefinition | ||
err := json.Unmarshal(*rawDefinition, &definition) | ||
|
||
return definition, err | ||
}, | ||
) | ||
|
||
dto_discovery.RegisterPaymentMethodUnserializer( | ||
PaymentMethodNoop, | ||
func(rawDefinition *json.RawMessage) (dto_discovery.PaymentMethod, error) { | ||
var method PaymentNoop | ||
err := json.Unmarshal(*rawDefinition, &method) | ||
|
||
return method, err | ||
}, | ||
) | ||
} |
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
Oops, something went wrong.