Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCast = errors.New("type cannot be casted to the desired") ErrNoResponse = errors.New("No response received. Has the request been ever sent?") )
predefined errors.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods to make grpc requests to remote server.
type ErrMethodNotFound ¶
type ErrMethodNotFound string
ErrMethodNotFound indicates that the requested method was not found in service.
func (ErrMethodNotFound) Error ¶
func (e ErrMethodNotFound) Error() string
Error returns the string representation of the error.
type ErrOutputNotSupported ¶
type ErrOutputNotSupported string
ErrOutputNotSupported indicates that handling the output of the GRPC method is currently not supported.
func (ErrOutputNotSupported) Error ¶
func (e ErrOutputNotSupported) Error() string
Error returns the string representation of the error.
type FileResponse ¶
type FileResponse struct { Headers metadata.MD Message proto.Message Trailers metadata.MD Status *status.Status Data io.ReadCloser }
FileResponse describes a GRPC response.
func (*FileResponse) FileName ¶
func (f *FileResponse) FileName() string
FileName returns the name of file received from response headers.
Click to show internal directories.
Click to hide internal directories.