github.com/goadesign/goa/examples/calc/gen/http/openapi/client


client

import "github.com/goadesign/goa/examples/calc/gen/http/openapi/client"

Overview

Index

Package files

client.go encode_decode.go paths.go types.go

type Client

type Client struct {
    // RestoreResponseBody controls whether the response bodies are reset after
    // decoding so they can be read again.
    RestoreResponseBody bool
    // contains filtered or unexported fields
}

Client lists the openapi service endpoint HTTP clients.

func NewClient

func NewClient(
    scheme string,
    host string,
    doer goahttp.Doer,
    enc func(*http.Request) goahttp.Encoder,
    dec func(*http.Response) goahttp.Decoder,
    restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the openapi service servers.


Generated by godoc2md