This file contains hidden or 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
| 1. I’ve seen he used MongoDB, what was the reason? what does he think about this technology? | |
| Basically, I’ve started working on a project that already had MongoDB and with | |
| the time I really loved the technology. The features that I really liked are: | |
| 1.1. Sharding - is a method for distributing data across multiple servers. | |
| MongoDB use the shard key which determines the distribution of the collection’s | |
| documents among the cluster’s shards | |
| 1.2. Dynamic Schema - store documents without defining DB’s structure compared |
This file contains hidden or 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
| // Oauth2Config is wrapper of oauth2.Config struct. | |
| type Oauth2Config interface { | |
| // AuthCodeURL returns a URL to OAuth 2.0 provider's consent page that asks for permissions | |
| AuthCodeURL(state string) string | |
| // Exchange converts an authorization code into a token. | |
| Exchange(ctx context.Context, code string) (*oauth2.Token, error) | |
| // RefreshToken refresh expired access token. It return new oauth2.Token or an error |
This file contains hidden or 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
| interface OperatorRepository { | |
| void registerOperator(Long roamingGroupId, RoamingGroup roamingGroup); | |
| void removeOperator(Long operatorId); | |
| } | |
| class PersistentOperatorRepository implements OperatorRepository { | |
| // Test need to set up roaming group ... |
This file contains hidden or 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
| class Property { | |
| private String name; | |
| private String value; | |
| } | |
| interface Operator { | |
| void changeProperties(List<Property> properties); | |
| } | |
| class MongoOperator implements Operator { |
This file contains hidden or 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
| interface CouponRepository { | |
| // requires service ... | |
| void register(String service, String coupon); | |
| } | |
| interface ServiceRepository { | |
| void register(String service); | |
| void findService(String serviceId); | |
| } | |
This file contains hidden or 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
| interface RoaminGroupRepository { | |
| void register(NewRoamingGroup newRoamingGroup); | |
| void registerOperator(Long roamingGroupId, RoamingGroup roamingGroup); | |
| void removeOperator(Long operatorId); | |
| void addAccessPoint(Long operatorId, AccessPoint accessPoint); | |
| void removeAccessPoint(Long accessPointId); |
This file contains hidden or 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
| .navbar | |
| .caret | |
| .label | |
| .table | |
| .img-responsive | |
| .img-rounded | |
| .img-thumbnail | |
| .img-circle | |
| .sr-only | |
| .lead |
This file contains hidden or 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
| ''''javascript | |
| describe("DHCP"); | |
| ''''' |
This file contains hidden or 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
| package com.clouway.alltest; | |
| import com.google.inject.AbstractModule; | |
| import com.google.inject.Guice; | |
| import com.google.inject.Inject; | |
| import com.google.inject.Injector; | |
| import com.google.inject.Provides; | |
| import com.google.inject.name.Named; | |
| import org.junit.Test; |
NewerOlder