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

30 lines
781 B

2 months ago
package rpc
import (
"github.com/TremblingV5/DouTok/pkg/dtviper"
)
// InitRPC init rpc client
func InitRPC() {
UserConfig := dtviper.ConfigInit("DOUTOK_USER", "user")
initUserRpc(UserConfig)
FeedConfig := dtviper.ConfigInit("DOUTOK_FEED", "feed")
initFeedRpc(FeedConfig)
PublishConfig := dtviper.ConfigInit("DOUTOK_PUBLISH", "publish")
initPublishRpc(PublishConfig)
FavoriteConfig := dtviper.ConfigInit("DOUTOK_FAVORITE", "favorite")
initFavoriteRpc(FavoriteConfig)
CommentConfig := dtviper.ConfigInit("DOUTOK_COMMENT", "comment")
initCommentRpc(CommentConfig)
RelationConfig := dtviper.ConfigInit("DOUTOK_RELATION", "relation")
initRelationRpc(RelationConfig)
MessageConfig := dtviper.ConfigInit("DOUTOK_MESSAGE", "message")
initMessageRpc(MessageConfig)
}