httpclient

package
v0.0.0-...-59ffee2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package httpclient http client CODE GENERATED AUTOMATICALLY THIS FILE COULD BE EDITED BY HANDS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateThesisTransport

type CreateThesisTransport interface {
	EncodeRequest(ctx context.Context, r *fasthttp.Request, request *api.CreateThesisRequest) (err error)
	DecodeResponse(ctx context.Context, r *fasthttp.Response) (response api.CreateThesisResponse, err error)
}

CreateThesisTransport transport interface

func NewCreateThesisTransport

func NewCreateThesisTransport(
	errorProcessor errorProcessor,
	errorCreator errorCreator,
	pathTemplate string,
	method string,
) CreateThesisTransport

NewCreateThesisTransport the transport creator for http requests

type Service

type Service interface {
	CreateThesis(ctx context.Context, request *api.CreateThesisRequest) (response api.CreateThesisResponse, err error)
}

Service implements Service interface

func NewClient

func NewClient(
	cli *fasthttp.HostClient,

	transportCreateThesis CreateThesisTransport,
) Service

NewClient the client creator

func NewPreparedClient

func NewPreparedClient(
	serverURL string,
	serverHost string,
	maxConns int,
	errorProcessor errorProcessor,
	errorCreator errorCreator,

	uriPathCreateThesis string,

	httpMethodGetBrandsByID string,

) Service

NewPreparedClient create and set up http client

Jump to

Keyboard shortcuts

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