README
¶
Company type client of company type filler
Usage
dep ensure -add gitlab.com/qrsx/companytype-client
import typeclient "gitlab.com/qrsx/companytype-client"
companyTypeClient := typeclient.NewClient(&fasthttp.Client{}, "https://devspace-com-ua.herokuapp.com/state/result.json")
companyAliasTypeMap, err := companyTypeClient.CompanyAliasTypeMap()
Types
[
{
"alias": "product",
"name": "Product"
}, {
"alias": "startup",
"name": "Startup"
}, {
"alias": "outsource",
"name": "Outsource"
}, {
"alias": "academy",
"name": "Academy"
}, {
"alias": "recruitment-agency",
"name": "Recruitment Agency"
}
]
Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyTypeState ¶
type CompanyTypeState struct { CompanyAlias string `json:"company_alias"` TypeAlias string `json:"type_alias"` }
easyjson:json
func (CompanyTypeState) MarshalEasyJSON ¶
func (v CompanyTypeState) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CompanyTypeState) MarshalJSON ¶
func (v CompanyTypeState) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CompanyTypeState) UnmarshalEasyJSON ¶
func (v *CompanyTypeState) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CompanyTypeState) UnmarshalJSON ¶
func (v *CompanyTypeState) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CompanyTypeStateList ¶
type CompanyTypeStateList []CompanyTypeState
easyjson:json
func (CompanyTypeStateList) MarshalEasyJSON ¶
func (v CompanyTypeStateList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CompanyTypeStateList) MarshalJSON ¶
func (v CompanyTypeStateList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CompanyTypeStateList) UnmarshalEasyJSON ¶
func (v *CompanyTypeStateList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CompanyTypeStateList) UnmarshalJSON ¶
func (v *CompanyTypeStateList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.