struct SimpleRpc::Context

Defined in:

simple_rpc/context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(msgid : UInt32, method : String, io_with_args : IO::Memory, 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, io_with_args _io_with_args = @io_with_args, 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 io_with_args : IO::Memory #

def logger : Log | Nil #

def method : String #

def msgid : UInt32 #

def notify : Bool #

def write_default_response #

[View source]
def write_error(msg) #

[View source]
def write_result(res) #

[View source]