struct SimpleRpc::Context

Defined in:

simple_rpc/context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(msgid : UInt32, method : String, node : MessagePack::Node, io : IO, notify : Bool, logger : Log | Nil = nil, created_at : Time = Time.local) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(msgid _msgid = @msgid, method _method = @method, node _node = @node, io _io = @io, notify _notify = @notify, logger _logger = @logger, created_at _created_at = @created_at) #

[View source]
def created_at : Time #

def io : IO #

def logger : Log | Nil #

def method : String #

def msgid : UInt32 #

def node : MessagePack::Node #

def notify : Bool #

def write_default_response #

[View source]
def write_error(msg) #

[View source]
def write_result(res) #

[View source]