module Cannon::Rpc::SingletonService(N)

Overview

Include this into a service description module to make it a singleton service. Singleton services are available under a well-known id, given as template argument to this. Both the Service implementation and the RemoteService client classes will automatically pick this up. When adding a service instance to a Manager without giving an explicit id, it'll automatically use the singleton id for a SingletonService.

Defined in:

cannon/rpc/singleton_service.cr

Constant Summary

SINGLETON_SERVICE_ID = N

Instance Method Summary

Instance Method Detail

def singleton_service_id : UInt32 #

Returns the singleton service id


[View source]