Documentation
¶
Index ¶
- func ResetMock()
- func SetMockHealthFunc(f func() (bool, error))
- func SetMockSubToInfoFunc(f func(from string, to []string) (*ClassificationLang, error))
- func SetNewException(e error)
- func WithClassificationLang(data map[string][]*service.Info) classificationLangOpt
- func WithClassificationLangFrom(from *service.Info) classificationLangOpt
- func WithClassificationLangFromLang(fromLang string) classificationLangOpt
- func WithClassificationLangKeys(keys []string) classificationLangOpt
- func WithHttpClient(httpClient myHttpClient) option
- type ClassificationLang
- type Identity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMockHealthFunc ¶
func SetMockSubToInfoFunc ¶
func SetMockSubToInfoFunc(f func(from string, to []string) (*ClassificationLang, error))
func SetNewException ¶
func SetNewException(e error)
func WithClassificationLang ¶
func WithClassificationLangFromLang ¶
func WithClassificationLangFromLang(fromLang string) classificationLangOpt
func WithClassificationLangKeys ¶
func WithClassificationLangKeys(keys []string) classificationLangOpt
func WithHttpClient ¶
func WithHttpClient(httpClient myHttpClient) option
Types ¶
type ClassificationLang ¶
type ClassificationLang struct { From *service.Info FromLang string // contains filtered or unexported fields }
func NewClassificationLang ¶
func NewClassificationLang(opts ...classificationLangOpt) *ClassificationLang
func (*ClassificationLang) GetInfos ¶
func (c *ClassificationLang) GetInfos(lang string) []*service.Info
func (*ClassificationLang) GetLangs ¶
func (c *ClassificationLang) GetLangs() []string
Click to show internal directories.
Click to hide internal directories.