mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-30 20:24:48 +00:00
publish rpc types
This commit is contained in:
@@ -10,10 +10,10 @@ use yajrc::{RpcError, RpcMethod};
|
|||||||
use crate::util::{invalid_request, JobRunner};
|
use crate::util::{invalid_request, JobRunner};
|
||||||
use crate::{AnyHandler, HandleAny, HandleAnyArgs, IntoContext, ParentHandler};
|
use crate::{AnyHandler, HandleAny, HandleAnyArgs, IntoContext, ParentHandler};
|
||||||
|
|
||||||
type GenericRpcMethod = yajrc::GenericRpcMethod<String, Value, Value>;
|
pub type GenericRpcMethod = yajrc::GenericRpcMethod<String, Value, Value>;
|
||||||
type RpcRequest = yajrc::RpcRequest<GenericRpcMethod>;
|
pub type RpcRequest = yajrc::RpcRequest<GenericRpcMethod>;
|
||||||
type RpcResponse = yajrc::RpcResponse<GenericRpcMethod>;
|
pub type RpcResponse = yajrc::RpcResponse<GenericRpcMethod>;
|
||||||
type SingleOrBatchRpcRequest = yajrc::SingleOrBatchRpcRequest<GenericRpcMethod>;
|
pub type SingleOrBatchRpcRequest = yajrc::SingleOrBatchRpcRequest<GenericRpcMethod>;
|
||||||
|
|
||||||
mod http;
|
mod http;
|
||||||
mod socket;
|
mod socket;
|
||||||
|
|||||||
Reference in New Issue
Block a user