Versions in this module Expand all Collapse all v1 v1.0.1 Sep 13, 2022 v1.0.0 Sep 12, 2022 Changes in this version + func UserAgent() string + func Version() string + type BaseClient struct + Endpoint string + func New(endpoint string) BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + func (client BaseClient) DetectLanguage(ctx context.Context, input BatchInput) (result LanguageBatchResult, err error) + func (client BaseClient) DetectLanguagePreparer(ctx context.Context, input BatchInput) (*http.Request, error) + func (client BaseClient) DetectLanguageResponder(resp *http.Response) (result LanguageBatchResult, err error) + func (client BaseClient) DetectLanguageSender(req *http.Request) (*http.Response, error) + func (client BaseClient) Entities(ctx context.Context, input MultiLanguageBatchInput) (result EntitiesBatchResult, err error) + func (client BaseClient) EntitiesPreparer(ctx context.Context, input MultiLanguageBatchInput) (*http.Request, error) + func (client BaseClient) EntitiesResponder(resp *http.Response) (result EntitiesBatchResult, err error) + func (client BaseClient) EntitiesSender(req *http.Request) (*http.Response, error) + func (client BaseClient) KeyPhrases(ctx context.Context, input MultiLanguageBatchInput) (result KeyPhraseBatchResult, err error) + func (client BaseClient) KeyPhrasesPreparer(ctx context.Context, input MultiLanguageBatchInput) (*http.Request, error) + func (client BaseClient) KeyPhrasesResponder(resp *http.Response) (result KeyPhraseBatchResult, err error) + func (client BaseClient) KeyPhrasesSender(req *http.Request) (*http.Response, error) + func (client BaseClient) Sentiment(ctx context.Context, input MultiLanguageBatchInput) (result SentimentBatchResult, err error) + func (client BaseClient) SentimentPreparer(ctx context.Context, input MultiLanguageBatchInput) (*http.Request, error) + func (client BaseClient) SentimentResponder(resp *http.Response) (result SentimentBatchResult, err error) + func (client BaseClient) SentimentSender(req *http.Request) (*http.Response, error) + type BatchInput struct + Documents *[]Input + type DetectedLanguage struct + Iso6391Name *string + Name *string + Score *float64 + type EntitiesBatchResult struct + Documents *[]EntitiesBatchResultItem + Errors *[]ErrorRecord + func (ebr EntitiesBatchResult) MarshalJSON() ([]byte, error) + type EntitiesBatchResultItem struct + Entities *[]EntityRecord + ID *string + func (ebri EntitiesBatchResultItem) MarshalJSON() ([]byte, error) + type EntityRecord struct + BingID *string + Matches *[]MatchRecord + Name *string + WikipediaID *string + WikipediaLanguage *string + WikipediaURL *string + func (er EntityRecord) MarshalJSON() ([]byte, error) + type ErrorRecord struct + ID *string + Message *string + type ErrorResponse struct + Code *string + InnerError *InternalError + Message *string + Target *string + type Input struct + ID *string + Text *string + type InternalError struct + Code *string + InnerError *InternalError + Message *string + type KeyPhraseBatchResult struct + Documents *[]KeyPhraseBatchResultItem + Errors *[]ErrorRecord + func (kpbr KeyPhraseBatchResult) MarshalJSON() ([]byte, error) + type KeyPhraseBatchResultItem struct + ID *string + KeyPhrases *[]string + func (kpbri KeyPhraseBatchResultItem) MarshalJSON() ([]byte, error) + type LanguageBatchResult struct + Documents *[]LanguageBatchResultItem + Errors *[]ErrorRecord + func (lbr LanguageBatchResult) MarshalJSON() ([]byte, error) + type LanguageBatchResultItem struct + DetectedLanguages *[]DetectedLanguage + ID *string + func (lbri LanguageBatchResultItem) MarshalJSON() ([]byte, error) + type MatchRecord struct + Length *int32 + Offset *int32 + Text *string + type MultiLanguageBatchInput struct + Documents *[]MultiLanguageInput + type MultiLanguageInput struct + ID *string + Language *string + Text *string + type SentimentBatchResult struct + Documents *[]SentimentBatchResultItem + Errors *[]ErrorRecord + func (sbr SentimentBatchResult) MarshalJSON() ([]byte, error) + type SentimentBatchResultItem struct + ID *string + Score *float64 + func (sbri SentimentBatchResultItem) MarshalJSON() ([]byte, error)