client

package module
v0.0.0-...-6856123 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 5 Imported by: 0

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 Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *fasthttp.Client, source string) *Client

func (*Client) CompanyAliasTypeMap

func (c *Client) CompanyAliasTypeMap() (map[string]string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL