fonchain-artistinfo/pkg/service/init.go

18 lines
379 B
Go
Raw Normal View History

2023-02-15 01:10:11 +00:00
package service
import (
"dubbo.apache.org/dubbo-go/v3/config"
2023-02-23 13:45:59 +00:00
"github.com/fonchain/fonchain-artistinfo/pb/account"
"github.com/fonchain/fonchain-artistinfo/pb/artist"
2023-02-15 01:10:11 +00:00
)
2023-02-23 13:45:59 +00:00
var (
GrpcArtistImpl = new(artist.ArtistClientImpl)
AccountImpl = new(account.AccountClientImpl)
)
2023-02-15 01:10:11 +00:00
func init() {
config.SetConsumerService(GrpcArtistImpl)
2023-02-23 13:45:59 +00:00
config.SetConsumerService(AccountImpl)
2023-02-15 01:10:11 +00:00
}