forked from micro/services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.go
229 lines (226 loc) · 8.95 KB
/
services.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
package services
import (
"github.com/micro/micro/v3/service/client"
"github.com/micro/services/address/proto"
"github.com/micro/services/analytics/proto"
"github.com/micro/services/answer/proto"
"github.com/micro/services/app/proto"
"github.com/micro/services/avatar/proto"
"github.com/micro/services/bitcoin/proto"
"github.com/micro/services/cache/proto"
"github.com/micro/services/carbon/proto"
"github.com/micro/services/chat/proto"
"github.com/micro/services/comments/proto"
"github.com/micro/services/contact/proto"
"github.com/micro/services/crypto/proto"
"github.com/micro/services/currency/proto"
"github.com/micro/services/db/proto"
"github.com/micro/services/dns/proto"
"github.com/micro/services/email/proto"
"github.com/micro/services/emoji/proto"
"github.com/micro/services/evchargers/proto"
"github.com/micro/services/event/proto"
"github.com/micro/services/file/proto"
"github.com/micro/services/forex/proto"
"github.com/micro/services/function/proto"
"github.com/micro/services/geocoding/proto"
"github.com/micro/services/gifs/proto"
"github.com/micro/services/github/proto"
"github.com/micro/services/google/proto"
"github.com/micro/services/helloworld/proto"
"github.com/micro/services/holidays/proto"
"github.com/micro/services/id/proto"
"github.com/micro/services/image/proto"
"github.com/micro/services/ip/proto"
"github.com/micro/services/joke/proto"
"github.com/micro/services/lists/proto"
"github.com/micro/services/location/proto"
"github.com/micro/services/memegen/proto"
"github.com/micro/services/minecraft/proto"
"github.com/micro/services/movie/proto"
"github.com/micro/services/mq/proto"
"github.com/micro/services/news/proto"
"github.com/micro/services/nft/proto"
"github.com/micro/services/notes/proto"
"github.com/micro/services/otp/proto"
"github.com/micro/services/password/proto"
"github.com/micro/services/ping/proto"
"github.com/micro/services/place/proto"
"github.com/micro/services/postcode/proto"
"github.com/micro/services/prayer/proto"
"github.com/micro/services/price/proto"
"github.com/micro/services/qr/proto"
"github.com/micro/services/quran/proto"
"github.com/micro/services/routing/proto"
"github.com/micro/services/rss/proto"
"github.com/micro/services/search/proto"
"github.com/micro/services/sentiment/proto"
"github.com/micro/services/sms/proto"
"github.com/micro/services/space/proto"
"github.com/micro/services/spam/proto"
"github.com/micro/services/stock/proto"
"github.com/micro/services/stream/proto"
"github.com/micro/services/sunnah/proto"
"github.com/micro/services/thumbnail/proto"
"github.com/micro/services/time/proto"
"github.com/micro/services/translate/proto"
"github.com/micro/services/tunnel/proto"
"github.com/micro/services/twitter/proto"
"github.com/micro/services/url/proto"
"github.com/micro/services/user/proto"
"github.com/micro/services/vehicle/proto"
"github.com/micro/services/wallet/proto"
"github.com/micro/services/weather/proto"
"github.com/micro/services/wordle/proto"
"github.com/micro/services/youtube/proto"
)
type Client struct {
Address address.AddressService
Analytics analytics.AnalyticsService
Answer answer.AnswerService
App app.AppService
Avatar avatar.AvatarService
Bitcoin bitcoin.BitcoinService
Cache cache.CacheService
Carbon carbon.CarbonService
Chat chat.ChatService
Comments comments.CommentsService
Contact contact.ContactService
Crypto crypto.CryptoService
Currency currency.CurrencyService
Db db.DbService
Dns dns.DnsService
Email email.EmailService
Emoji emoji.EmojiService
Evchargers evchargers.EvchargersService
Event event.EventService
File file.FileService
Forex forex.ForexService
Function function.FunctionService
Geocoding geocoding.GeocodingService
Gifs gifs.GifsService
Github github.GithubService
Google google.GoogleService
Helloworld helloworld.HelloworldService
Holidays holidays.HolidaysService
Id id.IdService
Image image.ImageService
Ip ip.IpService
Joke joke.JokeService
Lists lists.ListsService
Location location.LocationService
Memegen memegen.MemegenService
Minecraft minecraft.MinecraftService
Movie movie.MovieService
Mq mq.MqService
News news.NewsService
Nft nft.NftService
Notes notes.NotesService
Otp otp.OtpService
Password password.PasswordService
Ping ping.PingService
Place place.PlaceService
Postcode postcode.PostcodeService
Prayer prayer.PrayerService
Price price.PriceService
Qr qr.QrService
Quran quran.QuranService
Routing routing.RoutingService
Rss rss.RssService
Search search.SearchService
Sentiment sentiment.SentimentService
Sms sms.SmsService
Space space.SpaceService
Spam spam.SpamService
Stock stock.StockService
Stream stream.StreamService
Sunnah sunnah.SunnahService
Thumbnail thumbnail.ThumbnailService
Time time.TimeService
Translate translate.TranslateService
Tunnel tunnel.TunnelService
Twitter twitter.TwitterService
Url url.UrlService
User user.UserService
Vehicle vehicle.VehicleService
Wallet wallet.WalletService
Weather weather.WeatherService
Wordle wordle.WordleService
Youtube youtube.YoutubeService
}
func NewClient(c client.Client) *Client {
return &Client{
Address: address.NewAddressService("address", c),
Analytics: analytics.NewAnalyticsService("analytics", c),
Answer: answer.NewAnswerService("answer", c),
App: app.NewAppService("app", c),
Avatar: avatar.NewAvatarService("avatar", c),
Bitcoin: bitcoin.NewBitcoinService("bitcoin", c),
Cache: cache.NewCacheService("cache", c),
Carbon: carbon.NewCarbonService("carbon", c),
Chat: chat.NewChatService("chat", c),
Comments: comments.NewCommentsService("comments", c),
Contact: contact.NewContactService("contact", c),
Crypto: crypto.NewCryptoService("crypto", c),
Currency: currency.NewCurrencyService("currency", c),
Db: db.NewDbService("db", c),
Dns: dns.NewDnsService("dns", c),
Email: email.NewEmailService("email", c),
Emoji: emoji.NewEmojiService("emoji", c),
Evchargers: evchargers.NewEvchargersService("evchargers", c),
Event: event.NewEventService("event", c),
File: file.NewFileService("file", c),
Forex: forex.NewForexService("forex", c),
Function: function.NewFunctionService("function", c),
Geocoding: geocoding.NewGeocodingService("geocoding", c),
Gifs: gifs.NewGifsService("gifs", c),
Github: github.NewGithubService("github", c),
Google: google.NewGoogleService("google", c),
Helloworld: helloworld.NewHelloworldService("helloworld", c),
Holidays: holidays.NewHolidaysService("holidays", c),
Id: id.NewIdService("id", c),
Image: image.NewImageService("image", c),
Ip: ip.NewIpService("ip", c),
Joke: joke.NewJokeService("joke", c),
Lists: lists.NewListsService("lists", c),
Location: location.NewLocationService("location", c),
Memegen: memegen.NewMemegenService("memegen", c),
Minecraft: minecraft.NewMinecraftService("minecraft", c),
Movie: movie.NewMovieService("movie", c),
Mq: mq.NewMqService("mq", c),
News: news.NewNewsService("news", c),
Nft: nft.NewNftService("nft", c),
Notes: notes.NewNotesService("notes", c),
Otp: otp.NewOtpService("otp", c),
Password: password.NewPasswordService("password", c),
Ping: ping.NewPingService("ping", c),
Place: place.NewPlaceService("place", c),
Postcode: postcode.NewPostcodeService("postcode", c),
Prayer: prayer.NewPrayerService("prayer", c),
Price: price.NewPriceService("price", c),
Qr: qr.NewQrService("qr", c),
Quran: quran.NewQuranService("quran", c),
Routing: routing.NewRoutingService("routing", c),
Rss: rss.NewRssService("rss", c),
Search: search.NewSearchService("search", c),
Sentiment: sentiment.NewSentimentService("sentiment", c),
Sms: sms.NewSmsService("sms", c),
Space: space.NewSpaceService("space", c),
Spam: spam.NewSpamService("spam", c),
Stock: stock.NewStockService("stock", c),
Stream: stream.NewStreamService("stream", c),
Sunnah: sunnah.NewSunnahService("sunnah", c),
Thumbnail: thumbnail.NewThumbnailService("thumbnail", c),
Time: time.NewTimeService("time", c),
Translate: translate.NewTranslateService("translate", c),
Tunnel: tunnel.NewTunnelService("tunnel", c),
Twitter: twitter.NewTwitterService("twitter", c),
Url: url.NewUrlService("url", c),
User: user.NewUserService("user", c),
Vehicle: vehicle.NewVehicleService("vehicle", c),
Wallet: wallet.NewWalletService("wallet", c),
Weather: weather.NewWeatherService("weather", c),
Wordle: wordle.NewWordleService("wordle", c),
Youtube: youtube.NewYoutubeService("youtube", c),
}
}