-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #481 from TarsCloud/feature/lbbniu/registry
feat: framework supports automatic service registry discovery
- Loading branch information
Showing
7 changed files
with
230 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package tars | ||
|
||
import "github.com/TarsCloud/TarsGo/tars/registry" | ||
|
||
type Option func(o *options) | ||
|
||
type options struct { | ||
registrar registry.Registrar | ||
} | ||
|
||
// Registrar returns an Option to use the Registrar | ||
func Registrar(r registry.Registrar) Option { | ||
return func(o *options) { | ||
o.registrar = r | ||
} | ||
} |
Oops, something went wrong.