hello_service

package
v0.0.0-...-05d7cce Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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
}

Client for hello service API

func (*Client) HelloServiceSayHello

func (a *Client) HelloServiceSayHello(params *HelloServiceSayHelloParams, opts ...ClientOption) (*HelloServiceSayHelloOK, error)

HelloServiceSayHello hello service say hello API

func (*Client) HelloServiceSayHelloStream

func (a *Client) HelloServiceSayHelloStream(params *HelloServiceSayHelloStreamParams, opts ...ClientOption) (*HelloServiceSayHelloStreamOK, error)

HelloServiceSayHelloStream hello service say hello stream API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	HelloServiceSayHello(params *HelloServiceSayHelloParams, opts ...ClientOption) (*HelloServiceSayHelloOK, error)

	HelloServiceSayHelloStream(params *HelloServiceSayHelloStreamParams, opts ...ClientOption) (*HelloServiceSayHelloStreamOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new hello service API client.

type HelloServiceSayHelloDefault

type HelloServiceSayHelloDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

HelloServiceSayHelloDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewHelloServiceSayHelloDefault

func NewHelloServiceSayHelloDefault(code int) *HelloServiceSayHelloDefault

NewHelloServiceSayHelloDefault creates a HelloServiceSayHelloDefault with default headers values

func (*HelloServiceSayHelloDefault) Code

func (o *HelloServiceSayHelloDefault) Code() int

Code gets the status code for the hello service say hello default response

func (*HelloServiceSayHelloDefault) Error

func (*HelloServiceSayHelloDefault) GetPayload

func (o *HelloServiceSayHelloDefault) GetPayload() *models.RPCStatus

func (*HelloServiceSayHelloDefault) IsClientError

func (o *HelloServiceSayHelloDefault) IsClientError() bool

IsClientError returns true when this hello service say hello default response has a 4xx status code

func (*HelloServiceSayHelloDefault) IsCode

func (o *HelloServiceSayHelloDefault) IsCode(code int) bool

IsCode returns true when this hello service say hello default response a status code equal to that given

func (*HelloServiceSayHelloDefault) IsRedirect

func (o *HelloServiceSayHelloDefault) IsRedirect() bool

IsRedirect returns true when this hello service say hello default response has a 3xx status code

func (*HelloServiceSayHelloDefault) IsServerError

func (o *HelloServiceSayHelloDefault) IsServerError() bool

IsServerError returns true when this hello service say hello default response has a 5xx status code

func (*HelloServiceSayHelloDefault) IsSuccess

func (o *HelloServiceSayHelloDefault) IsSuccess() bool

IsSuccess returns true when this hello service say hello default response has a 2xx status code

func (*HelloServiceSayHelloDefault) String

func (o *HelloServiceSayHelloDefault) String() string

type HelloServiceSayHelloOK

type HelloServiceSayHelloOK struct {
	Payload *models.APIHelloResponse
}

HelloServiceSayHelloOK describes a response with status code 200, with default header values.

A successful response.

func NewHelloServiceSayHelloOK

func NewHelloServiceSayHelloOK() *HelloServiceSayHelloOK

NewHelloServiceSayHelloOK creates a HelloServiceSayHelloOK with default headers values

func (*HelloServiceSayHelloOK) Code

func (o *HelloServiceSayHelloOK) Code() int

Code gets the status code for the hello service say hello o k response

func (*HelloServiceSayHelloOK) Error

func (o *HelloServiceSayHelloOK) Error() string

func (*HelloServiceSayHelloOK) GetPayload

func (*HelloServiceSayHelloOK) IsClientError

func (o *HelloServiceSayHelloOK) IsClientError() bool

IsClientError returns true when this hello service say hello o k response has a 4xx status code

func (*HelloServiceSayHelloOK) IsCode

func (o *HelloServiceSayHelloOK) IsCode(code int) bool

IsCode returns true when this hello service say hello o k response a status code equal to that given

func (*HelloServiceSayHelloOK) IsRedirect

func (o *HelloServiceSayHelloOK) IsRedirect() bool

IsRedirect returns true when this hello service say hello o k response has a 3xx status code

func (*HelloServiceSayHelloOK) IsServerError

func (o *HelloServiceSayHelloOK) IsServerError() bool

IsServerError returns true when this hello service say hello o k response has a 5xx status code

func (*HelloServiceSayHelloOK) IsSuccess

func (o *HelloServiceSayHelloOK) IsSuccess() bool

IsSuccess returns true when this hello service say hello o k response has a 2xx status code

func (*HelloServiceSayHelloOK) String

func (o *HelloServiceSayHelloOK) String() string

type HelloServiceSayHelloParams

type HelloServiceSayHelloParams struct {

	// Greeting.
	Greeting *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

HelloServiceSayHelloParams contains all the parameters to send to the API endpoint

for the hello service say hello operation.

Typically these are written to a http.Request.

func NewHelloServiceSayHelloParams

func NewHelloServiceSayHelloParams() *HelloServiceSayHelloParams

NewHelloServiceSayHelloParams creates a new HelloServiceSayHelloParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewHelloServiceSayHelloParamsWithContext

func NewHelloServiceSayHelloParamsWithContext(ctx context.Context) *HelloServiceSayHelloParams

NewHelloServiceSayHelloParamsWithContext creates a new HelloServiceSayHelloParams object with the ability to set a context for a request.

func NewHelloServiceSayHelloParamsWithHTTPClient

func NewHelloServiceSayHelloParamsWithHTTPClient(client *http.Client) *HelloServiceSayHelloParams

NewHelloServiceSayHelloParamsWithHTTPClient creates a new HelloServiceSayHelloParams object with the ability to set a custom HTTPClient for a request.

func NewHelloServiceSayHelloParamsWithTimeout

func NewHelloServiceSayHelloParamsWithTimeout(timeout time.Duration) *HelloServiceSayHelloParams

NewHelloServiceSayHelloParamsWithTimeout creates a new HelloServiceSayHelloParams object with the ability to set a timeout on a request.

func (*HelloServiceSayHelloParams) SetContext

func (o *HelloServiceSayHelloParams) SetContext(ctx context.Context)

SetContext adds the context to the hello service say hello params

func (*HelloServiceSayHelloParams) SetDefaults

func (o *HelloServiceSayHelloParams) SetDefaults()

SetDefaults hydrates default values in the hello service say hello params (not the query body).

All values with no default are reset to their zero value.

func (*HelloServiceSayHelloParams) SetGreeting

func (o *HelloServiceSayHelloParams) SetGreeting(greeting *string)

SetGreeting adds the greeting to the hello service say hello params

func (*HelloServiceSayHelloParams) SetHTTPClient

func (o *HelloServiceSayHelloParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the hello service say hello params

func (*HelloServiceSayHelloParams) SetTimeout

func (o *HelloServiceSayHelloParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the hello service say hello params

func (*HelloServiceSayHelloParams) WithContext

WithContext adds the context to the hello service say hello params

func (*HelloServiceSayHelloParams) WithDefaults

WithDefaults hydrates default values in the hello service say hello params (not the query body).

All values with no default are reset to their zero value.

func (*HelloServiceSayHelloParams) WithGreeting

func (o *HelloServiceSayHelloParams) WithGreeting(greeting *string) *HelloServiceSayHelloParams

WithGreeting adds the greeting to the hello service say hello params

func (*HelloServiceSayHelloParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the hello service say hello params

func (*HelloServiceSayHelloParams) WithTimeout

WithTimeout adds the timeout to the hello service say hello params

func (*HelloServiceSayHelloParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type HelloServiceSayHelloReader

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

HelloServiceSayHelloReader is a Reader for the HelloServiceSayHello structure.

func (*HelloServiceSayHelloReader) ReadResponse

func (o *HelloServiceSayHelloReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type HelloServiceSayHelloStreamDefault

type HelloServiceSayHelloStreamDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

HelloServiceSayHelloStreamDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewHelloServiceSayHelloStreamDefault

func NewHelloServiceSayHelloStreamDefault(code int) *HelloServiceSayHelloStreamDefault

NewHelloServiceSayHelloStreamDefault creates a HelloServiceSayHelloStreamDefault with default headers values

func (*HelloServiceSayHelloStreamDefault) Code

Code gets the status code for the hello service say hello stream default response

func (*HelloServiceSayHelloStreamDefault) Error

func (*HelloServiceSayHelloStreamDefault) GetPayload

func (*HelloServiceSayHelloStreamDefault) IsClientError

func (o *HelloServiceSayHelloStreamDefault) IsClientError() bool

IsClientError returns true when this hello service say hello stream default response has a 4xx status code

func (*HelloServiceSayHelloStreamDefault) IsCode

func (o *HelloServiceSayHelloStreamDefault) IsCode(code int) bool

IsCode returns true when this hello service say hello stream default response a status code equal to that given

func (*HelloServiceSayHelloStreamDefault) IsRedirect

func (o *HelloServiceSayHelloStreamDefault) IsRedirect() bool

IsRedirect returns true when this hello service say hello stream default response has a 3xx status code

func (*HelloServiceSayHelloStreamDefault) IsServerError

func (o *HelloServiceSayHelloStreamDefault) IsServerError() bool

IsServerError returns true when this hello service say hello stream default response has a 5xx status code

func (*HelloServiceSayHelloStreamDefault) IsSuccess

func (o *HelloServiceSayHelloStreamDefault) IsSuccess() bool

IsSuccess returns true when this hello service say hello stream default response has a 2xx status code

func (*HelloServiceSayHelloStreamDefault) String

type HelloServiceSayHelloStreamOK

type HelloServiceSayHelloStreamOK struct {
	Payload *HelloServiceSayHelloStreamOKBody
}

HelloServiceSayHelloStreamOK describes a response with status code 200, with default header values.

A successful response.(streaming responses)

func NewHelloServiceSayHelloStreamOK

func NewHelloServiceSayHelloStreamOK() *HelloServiceSayHelloStreamOK

NewHelloServiceSayHelloStreamOK creates a HelloServiceSayHelloStreamOK with default headers values

func (*HelloServiceSayHelloStreamOK) Code

Code gets the status code for the hello service say hello stream o k response

func (*HelloServiceSayHelloStreamOK) Error

func (*HelloServiceSayHelloStreamOK) GetPayload

func (*HelloServiceSayHelloStreamOK) IsClientError

func (o *HelloServiceSayHelloStreamOK) IsClientError() bool

IsClientError returns true when this hello service say hello stream o k response has a 4xx status code

func (*HelloServiceSayHelloStreamOK) IsCode

func (o *HelloServiceSayHelloStreamOK) IsCode(code int) bool

IsCode returns true when this hello service say hello stream o k response a status code equal to that given

func (*HelloServiceSayHelloStreamOK) IsRedirect

func (o *HelloServiceSayHelloStreamOK) IsRedirect() bool

IsRedirect returns true when this hello service say hello stream o k response has a 3xx status code

func (*HelloServiceSayHelloStreamOK) IsServerError

func (o *HelloServiceSayHelloStreamOK) IsServerError() bool

IsServerError returns true when this hello service say hello stream o k response has a 5xx status code

func (*HelloServiceSayHelloStreamOK) IsSuccess

func (o *HelloServiceSayHelloStreamOK) IsSuccess() bool

IsSuccess returns true when this hello service say hello stream o k response has a 2xx status code

func (*HelloServiceSayHelloStreamOK) String

type HelloServiceSayHelloStreamOKBody

type HelloServiceSayHelloStreamOKBody struct {

	// error
	Error *models.RPCStatus `json:"error,omitempty"`

	// result
	Result *models.APIHelloResponse `json:"result,omitempty"`
}

HelloServiceSayHelloStreamOKBody Stream result of apiHelloResponse swagger:model HelloServiceSayHelloStreamOKBody

func (*HelloServiceSayHelloStreamOKBody) ContextValidate

func (o *HelloServiceSayHelloStreamOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hello service say hello stream o k body based on the context it is used

func (*HelloServiceSayHelloStreamOKBody) MarshalBinary

func (o *HelloServiceSayHelloStreamOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HelloServiceSayHelloStreamOKBody) UnmarshalBinary

func (o *HelloServiceSayHelloStreamOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HelloServiceSayHelloStreamOKBody) Validate

Validate validates this hello service say hello stream o k body

type HelloServiceSayHelloStreamParams

type HelloServiceSayHelloStreamParams struct {

	// Greeting.
	Greeting *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

HelloServiceSayHelloStreamParams contains all the parameters to send to the API endpoint

for the hello service say hello stream operation.

Typically these are written to a http.Request.

func NewHelloServiceSayHelloStreamParams

func NewHelloServiceSayHelloStreamParams() *HelloServiceSayHelloStreamParams

NewHelloServiceSayHelloStreamParams creates a new HelloServiceSayHelloStreamParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewHelloServiceSayHelloStreamParamsWithContext

func NewHelloServiceSayHelloStreamParamsWithContext(ctx context.Context) *HelloServiceSayHelloStreamParams

NewHelloServiceSayHelloStreamParamsWithContext creates a new HelloServiceSayHelloStreamParams object with the ability to set a context for a request.

func NewHelloServiceSayHelloStreamParamsWithHTTPClient

func NewHelloServiceSayHelloStreamParamsWithHTTPClient(client *http.Client) *HelloServiceSayHelloStreamParams

NewHelloServiceSayHelloStreamParamsWithHTTPClient creates a new HelloServiceSayHelloStreamParams object with the ability to set a custom HTTPClient for a request.

func NewHelloServiceSayHelloStreamParamsWithTimeout

func NewHelloServiceSayHelloStreamParamsWithTimeout(timeout time.Duration) *HelloServiceSayHelloStreamParams

NewHelloServiceSayHelloStreamParamsWithTimeout creates a new HelloServiceSayHelloStreamParams object with the ability to set a timeout on a request.

func (*HelloServiceSayHelloStreamParams) SetContext

SetContext adds the context to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) SetDefaults

func (o *HelloServiceSayHelloStreamParams) SetDefaults()

SetDefaults hydrates default values in the hello service say hello stream params (not the query body).

All values with no default are reset to their zero value.

func (*HelloServiceSayHelloStreamParams) SetGreeting

func (o *HelloServiceSayHelloStreamParams) SetGreeting(greeting *string)

SetGreeting adds the greeting to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) SetHTTPClient

func (o *HelloServiceSayHelloStreamParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) SetTimeout

func (o *HelloServiceSayHelloStreamParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) WithContext

WithContext adds the context to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) WithDefaults

WithDefaults hydrates default values in the hello service say hello stream params (not the query body).

All values with no default are reset to their zero value.

func (*HelloServiceSayHelloStreamParams) WithGreeting

WithGreeting adds the greeting to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) WithTimeout

WithTimeout adds the timeout to the hello service say hello stream params

func (*HelloServiceSayHelloStreamParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type HelloServiceSayHelloStreamReader

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

HelloServiceSayHelloStreamReader is a Reader for the HelloServiceSayHelloStream structure.

func (*HelloServiceSayHelloStreamReader) ReadResponse

func (o *HelloServiceSayHelloStreamReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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