Skip to content

Latest commit

 

History

History
401 lines (206 loc) · 5.14 KB

File metadata and controls

401 lines (206 loc) · 5.14 KB

API Documentation

Auto-generated from Magnolia source.


Module: email-imap

  • thread · import(...)
  • sock · import(...)

_tagLine(tag, status, text)

_untag(text)

returns :string

_literalSize(line)

returns ?

_readBlock(socket, tag)

_client(socket)

returns :object

connect(address, options)

returns :object

_mailboxes(handlers, authState)

_serve(socket, handlers, opts)

listen(address, handlers, options)

Module: email-pop

  • thread · import(...)
  • sock · import(...)

_singleLine(ok?, text)

returns :object

_readStatus(socket)

_readMulti(socket)

_sendMulti(socket, ok?, text, lines)

_client(socket)

returns :object

connect(address, options)

returns :object

_messageSize(message)

_loadMessages(handlers, authState)

_serve(socket, handlers, opts)

listen(address, handlers, options)

Module: email-smtp

  • thread · import(...)
  • sock · import(...)

_okLine(code, text)

_moreLine(code, text)

_resp(code, lines)

returns :object

_readResponse(socket)

_textLines(response)

_dotStuff(body)

_renderMessage(message)

_smtpClient(socket, greeting, options)

returns :object

connect(address, options)

returns :object

_pathValue(line, prefix)

_sessionState(socket, handlers, options)

returns :object

_smtpReply(socket, code, text)

_smtpMultiline(socket, code, lines)

_handleData(socket)

_serveClient(socket, handlers, opts)

listen(address, handlers, options)

Module: lib\email.oak

  • smtp · import(...)
  • pop · import(...)
  • imap · import(...)

Module: socket

connect(address, options)

send(socket, data)

recv(socket, size)

recvExact(socket, size)

recvLine(socket)

sendLine(socket, line)

startTLS(socket, options)

close(socket)

listen(address, onConnect, options)

Socket(socket)

returns :object

Module: std

identity(x)

is(x)

thunk returns :function

constantly(x)

thunk returns :function

_baseIterator(v)

returns :string

_asPredicate(pred)

returns :function

default(x, base)

  • _nToH · '0123456789abcdef'

toHex(n)

  • _hToN · {22 entries}

fromHex(s)

clamp(min, max, n, m)

returns :list

slice(xs, min, max)

clone(x)

returns :string

range(start, end, step)

returns :list

reverse(xs)

map(xs, f)

each(xs, f)

filter(xs, f)

exclude(xs, f)

separate(xs, f)

reduce(xs, seed, f)

flatten(xs)

compact(xs)

some(xs, pred)

every(xs, pred)

append(xs, ys)

join(xs, ys)

zip(xs, ys, zipper)

partition(xs, by)

uniq(xs, pred)

first(xs)

last(xs)

take(xs, n)

takeLast(xs, n)

find(xs, pred)

rfind(xs, pred)

indexOf(xs, x)

rindexOf(xs, x)

contains?(xs, x)

returns :bool

values(obj)

entries(obj)

fromEntries(entries)

merge(os...)

returns ?

once(f)

thunk returns :function

loop(max, f)

aloop(max, f, done)

serial(xs, f, done)

parallel(xs, f, done)

debounce(duration, firstCall, f)

thunk returns :function

stdin()

println(xs...)

Module: str

checkRange(lo, hi)

thunk returns :function

upper?(c)

returns :bool

lower?(c)

returns :bool

digit?(c)

returns :bool

space?(c)

returns :bool

letter?(c)

returns :bool

word?(c)

returns :bool

join(strings, joiner)

returns :string

startsWith?(s, prefix)

endsWith?(s, suffix)

_matchesAt?(s, substr, idx)

returns :bool

indexOf(s, substr)

rindexOf(s, substr)

contains?(s, substr)

cut(s, sep)

returns :list

lower(s)

upper(s)

_replaceNonEmpty(s, old, new)

replace(s, old, new)

_splitNonEmpty(s, sep)

split(s, sep)

_extend(pad, n)

padStart(s, n, pad)

padEnd(s, n, pad)

_trimStartSpace(s)

_trimStartNonEmpty(s, prefix)

trimStart(s, prefix)

_trimEndSpace(s)

_trimEndNonEmpty(s, suffix)

trimEnd(s, suffix)

trim(s, part)

Module: thread

spawn(fnToRun, args...)

makeChannel(size)

send(ch, value, callback)

recv(ch, callback)

close(_ch)

returns ?

cs Mutex()

returns :object

cs Semaphore(n)

returns :object

cs WaitGroup()

returns :object

cs Future(fnToRun)

returns :object

cs Pool(numWorkers)

returns :object

parallel(fns)

pmap(list, fnToRun)

pmapConcurrent(list, fnToRun, maxConcurrent)

race(fns)

pipeline(input, stages...)

retry(fnToRun, maxAttempts)

debounce(fnToRun, waitTime)

thunk returns :function

throttle(fnToRun, waitTime)

thunk returns :function