Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

hubv2 state

Back to all declarations

inited

bool

Value

true

Init

func()

Init sets the first admin (deployer EOA). Call once.

Open
OID
0448bf…5b7d:8
Init details

Inspect func

isAdminAddr

func(addr .uverse.address) bool
Open
OID
0448bf…5b7d:11
isAdminAddr details

Inspect func

IsAdmin

func(addr string) bool

IsAdmin reports whether addr is an admin.

Open
OID
0448bf…5b7d:13
IsAdmin details

Inspect func

AdminCount

func() int

AdminCount returns number of admins.

Open
OID
0448bf…5b7d:14
AdminCount details

Inspect func

ListAdmins

func() string

ListAdmins returns newline-separated admin addresses.

Open
OID
0448bf…5b7d:15
ListAdmins details

Inspect func

AddAdmin

func(newAdmin .uverse.address)

AddAdmin grants admin rights (existing admin only).

Open
OID
0448bf…5b7d:16
AddAdmin details

Inspect func

RemoveAdmin

func(who .uverse.address)

RemoveAdmin revokes admin. Cannot remove last admin.

Open
OID
0448bf…5b7d:17
RemoveAdmin details

Inspect func

SetModule

func(name string, path string)

SetModule registers or updates a module path (any admin).

Open
OID
0448bf…5b7d:18
SetModule details

Inspect func

GetModule

func(name string) string

GetModule returns the package path for name, or "".

Open
OID
0448bf…5b7d:19
GetModule details

Inspect func

ListModules

func() string

ListModules returns newline-separated "name|path".

Open
OID
0448bf…5b7d:20
ListModules details

Inspect func

ModuleCount

func() int

ModuleCount for ops.

Open
OID
0448bf…5b7d:21
ModuleCount details

Inspect func

Inited

func() bool

Inited reports Init.

Open
OID
0448bf…5b7d:22
Inited details

Inspect func

Admin

func() string

Admin returns first admin (compat) — first key in tree iteration order.

Open
OID
0448bf…5b7d:23
Admin details

Inspect func
admins : v0.Tree Inspect
inited : bool =true
modules : v0.Tree Inspect
Init : func() Inspect
requireInit : func() Inspect
isAdminAddr : func(addr .uverse.address) bool Inspect
requireAdmin : func() Inspect
IsAdmin : func(addr string) bool Inspect
AdminCount : func() int Inspect
ListAdmins : func() string Inspect
AddAdmin : func(newAdmin .uverse.address) Inspect
RemoveAdmin : func(who .uverse.address) Inspect
SetModule : func(name string, path string) Inspect
GetModule : func(name string) string Inspect
ListModules : func() string Inspect
ModuleCount : func() int Inspect
Inited : func() bool Inspect
Admin : func() string Inspect
Render : func(path string) string Inspect
resetForTest : func() Inspect