Skip to content

Commit be301c2

Browse files
fix(Broadcast): unexported fields are not exposed
The manager implementation uses the AddHandler method
1 parent 1c097fe commit be301c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

broadcast/router/router.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type Router interface {
2020
ReplyToClient(dto *dtos.ReplyMsg) error
2121
Connect(addr string)
2222
Close() error
23+
AddHandler(method string, handler any)
2324
}
2425

2526
type router struct {
@@ -46,7 +47,7 @@ type Config struct {
4647
DialOpts []grpc.DialOption
4748
}
4849

49-
func NewRouter(config *Config) *router {
50+
func NewRouter(config *Config) Router {
5051
if len(config.DialOpts) <= 0 {
5152
config.DialOpts = []grpc.DialOption{
5253
grpc.WithTransportCredentials(insecure.NewCredentials()),

0 commit comments

Comments
 (0)