class CrystalDoc::MCP::DocCache

Defined in:

crystaldoc/mcp_cache.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ttl : Time::Span = Time::Span.new(days: 1)) #

[View source]

Instance Method Detail

def get(service : String, user : String, project : String, version : String) : JSON::Any | Nil #

[View source]
def get_method(type_name : String, method_name : String, service : String, user : String, project : String, version : String, kind : String | Nil = nil) : MethodDetails | Nil #

[View source]
def get_type(full_name : String, service : String, user : String, project : String, version : String) : JSON::Any | Nil #

[View source]
def list_api_types(service : String, user : String, project : String, version : String, namespace : String | Nil = nil) : Array(TypeResult) #

[View source]
def list_repo_versions : Array(RepoVersionInfo) #

[View source]
def search_constants(query : String, repo : String) : Array(ConstantResult) #

[View source]
def search_methods(query : String, repo : String) : Array(MethodResult) #

[View source]
def search_types(query : String, repo : String) : Array(TypeResult) #

[View source]