rks-yag.ipc.0.18.0.source-code.ipc.thrift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ipc Show documentation
Show all versions of ipc Show documentation
A simple async IPC library written in Kotlin.
namespace java com.github.yag.ipc
struct Prompt {
1: required string version
2: required binary body
}
struct ConnectRequest {
1: required string version
2: optional i64 requestTimeoutMs
3: optional string sessionId
4: optional map headers
5: required binary body
}
struct ConnectionAccepted {
1: required string connectionId
2: required string sessionId
3: optional map headers
4: optional binary body
}
struct ConnectionRejected {
1: optional i32 code
2: required string message
}
union ConnectionResponse {
1: ConnectionAccepted accepted
2: ConnectionRejected rejected
}
struct RequestHeader {
1: required i64 callId
2: required string callType
3: required i32 contentLength
}
enum StatusCode {
OK = 0
PARTIAL_CONTENT = 1
CONNECTION_ERROR = -1
TIMEOUT = -2
NOT_FOUND = -3
INTERNAL_ERROR = -4
}
struct ResponseHeader {
1: required i64 callId
2: required StatusCode statusCode
3: required i32 contentLength
}