You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
701 B
Go

8 months ago
package service
import (
"dubbo.apache.org/dubbo-go/v3/config"
_ "dubbo.apache.org/dubbo-go/v3/imports"
8 months ago
"github.com/exhibition-main/api/account"
"github.com/exhibition-main/api/artist"
8 months ago
"github.com/exhibition-main/api/exhibition"
8 months ago
appConfig "github.com/exhibition-main/internal/config"
)
8 months ago
var GrpcExhibitionClientImpl = new(exhibition.ExhibitionClientImpl)
8 months ago
var AccountProvider = new(account.AccountClientImpl)
var GrpcArtistImpl = new(artist.ArtistClientImpl)
8 months ago
func init() {
7 months ago
appConfig.GetOptions()
8 months ago
config.SetConsumerService(GrpcArtistImpl)
config.SetConsumerService(AccountProvider)
8 months ago
config.SetConsumerService(GrpcExhibitionClientImpl)
8 months ago
if err := config.Load(); err != nil {
panic(err)
}
}