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

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