Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pbase_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
// contains filtered or unexported fields
}
Client basic struct that contains all method to work with JSON-RPC 2.0 protocol
func NewClient ¶
func NewClient() *Client
NewClient returns new configured Client to start work with JSON-RPC 2.0 protocol
func (*Client) Call ¶
func (cl *Client) Call(fctx *fasthttp.RequestCtx, method string, args, result interface{}) error
Call run remote procedure on JSON-RPC 2.0 API with parsing answer to provided structure or interface
func (*Client) DisableHeaderNamesNormalizing ¶
DisableHeaderNamesNormalizing setting normalize headers or not
func (*Client) SetBaseURL ¶
SetBaseURL setting basic url for API
func (*Client) SetClientTimeout ¶
SetClientTimeout this method sets globally for client its timeout
type PBase ¶
type PBase struct {
Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*PBase) Descriptor
deprecated
func (*PBase) ProtoMessage ¶
func (*PBase) ProtoMessage()
func (*PBase) ProtoReflect ¶
func (x *PBase) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.