daemon/fetch.bend relies on unsafe/foreign
raw source on the hub · import cswap-bend-cli@0.1.0.0/daemon/fetch.bend as Fetch
9 imports
import Base import ../act.bend as Act import ../store/base.bend as SBase import ../collect.bend as Collect import ../collectrun.bend as CRun import ../view.bend as View import ../policy/types.bend as T import ./config.bend as Cfg import ./gather.bend as G
Definitions
def ActM source · line 17 · raw
@-A:Type -> Type
def ActM.pure source · line 20 · raw
@-A:Type -> @x:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(A)
def ActM.bind source · line 23 · raw
@-A:Type -> @-B:Type -> @m:0x0717344745a30ebad1f19045228e8f18/act.of(A) -> @f:(@_:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)) -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)
def disabled_of source · line 26 · raw
@+a:0x0717344745a30ebad1f19045228e8f18/policy/types.Account -> Bool
def is_active source · line 31 · raw
@+slot:String -> @+active:Maybe<&2, String> -> Bool
def info_of source · line 38 · raw
@+e:0x0717344745a30ebad1f19045228e8f18/daemon/gather.Ent -> @+active:Maybe<&2, String> -> 0x0717344745a30ebad1f19045228e8f18/collect.Info
def infos source · line 43 · raw
@+es:List<&2, 0x0717344745a30ebad1f19045228e8f18/daemon/gather.Ent> -> @+active:Maybe<&2, String> -> List<&2, 0x0717344745a30ebad1f19045228e8f18/collect.Info>
def tenths source · line 51 · raw
@+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> U32
The threshold in tenths of a percent, as the collector wants it.
def discard source · line 54 · raw
@+rs:List<&2, 0x0717344745a30ebad1f19045228e8f18/view.Acct> -> 0x0717344745a30ebad1f19045228e8f18/act.of(Unit)
def fetch_all source · line 57 · raw
@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> @+es:List<&2, 0x0717344745a30ebad1f19045228e8f18/daemon/gather.Ent> -> @+active:Maybe<&2, String> -> @+now:U32 -> 0x0717344745a30ebad1f19045228e8f18/act.of(Unit)