github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/usersprivate/bindings/import_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  //go:build wasm
     5  
     6  package bindings
     7  
     8  import (
     9  	"unsafe"
    10  
    11  	"github.com/primecitizens/pcz/std/ffi/js"
    12  )
    13  
    14  type (
    15  	_ unsafe.Pointer
    16  	_ js.Ref
    17  )
    18  
    19  //go:wasmimport plat/js/webext/usersprivate store_LoginStatusDict
    20  //go:noescape
    21  func LoginStatusDictJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/usersprivate load_LoginStatusDict
    25  //go:noescape
    26  func LoginStatusDictJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/usersprivate store_User
    30  //go:noescape
    31  func UserJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/usersprivate load_User
    35  //go:noescape
    36  func UserJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/usersprivate has_AddUser
    40  //go:noescape
    41  func HasFuncAddUser() js.Ref
    42  
    43  //go:wasmimport plat/js/webext/usersprivate func_AddUser
    44  //go:noescape
    45  func FuncAddUser(fn unsafe.Pointer)
    46  
    47  //go:wasmimport plat/js/webext/usersprivate call_AddUser
    48  //go:noescape
    49  func CallAddUser(
    50  	retPtr unsafe.Pointer,
    51  	email js.Ref)
    52  
    53  //go:wasmimport plat/js/webext/usersprivate try_AddUser
    54  //go:noescape
    55  func TryAddUser(
    56  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    57  	email js.Ref) (ok js.Ref)
    58  
    59  //go:wasmimport plat/js/webext/usersprivate has_GetCurrentUser
    60  //go:noescape
    61  func HasFuncGetCurrentUser() js.Ref
    62  
    63  //go:wasmimport plat/js/webext/usersprivate func_GetCurrentUser
    64  //go:noescape
    65  func FuncGetCurrentUser(fn unsafe.Pointer)
    66  
    67  //go:wasmimport plat/js/webext/usersprivate call_GetCurrentUser
    68  //go:noescape
    69  func CallGetCurrentUser(
    70  	retPtr unsafe.Pointer)
    71  
    72  //go:wasmimport plat/js/webext/usersprivate try_GetCurrentUser
    73  //go:noescape
    74  func TryGetCurrentUser(
    75  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    76  
    77  //go:wasmimport plat/js/webext/usersprivate has_GetLoginStatus
    78  //go:noescape
    79  func HasFuncGetLoginStatus() js.Ref
    80  
    81  //go:wasmimport plat/js/webext/usersprivate func_GetLoginStatus
    82  //go:noescape
    83  func FuncGetLoginStatus(fn unsafe.Pointer)
    84  
    85  //go:wasmimport plat/js/webext/usersprivate call_GetLoginStatus
    86  //go:noescape
    87  func CallGetLoginStatus(
    88  	retPtr unsafe.Pointer)
    89  
    90  //go:wasmimport plat/js/webext/usersprivate try_GetLoginStatus
    91  //go:noescape
    92  func TryGetLoginStatus(
    93  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    94  
    95  //go:wasmimport plat/js/webext/usersprivate has_GetUsers
    96  //go:noescape
    97  func HasFuncGetUsers() js.Ref
    98  
    99  //go:wasmimport plat/js/webext/usersprivate func_GetUsers
   100  //go:noescape
   101  func FuncGetUsers(fn unsafe.Pointer)
   102  
   103  //go:wasmimport plat/js/webext/usersprivate call_GetUsers
   104  //go:noescape
   105  func CallGetUsers(
   106  	retPtr unsafe.Pointer)
   107  
   108  //go:wasmimport plat/js/webext/usersprivate try_GetUsers
   109  //go:noescape
   110  func TryGetUsers(
   111  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   112  
   113  //go:wasmimport plat/js/webext/usersprivate has_IsUserInList
   114  //go:noescape
   115  func HasFuncIsUserInList() js.Ref
   116  
   117  //go:wasmimport plat/js/webext/usersprivate func_IsUserInList
   118  //go:noescape
   119  func FuncIsUserInList(fn unsafe.Pointer)
   120  
   121  //go:wasmimport plat/js/webext/usersprivate call_IsUserInList
   122  //go:noescape
   123  func CallIsUserInList(
   124  	retPtr unsafe.Pointer,
   125  	email js.Ref)
   126  
   127  //go:wasmimport plat/js/webext/usersprivate try_IsUserInList
   128  //go:noescape
   129  func TryIsUserInList(
   130  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   131  	email js.Ref) (ok js.Ref)
   132  
   133  //go:wasmimport plat/js/webext/usersprivate has_IsUserListManaged
   134  //go:noescape
   135  func HasFuncIsUserListManaged() js.Ref
   136  
   137  //go:wasmimport plat/js/webext/usersprivate func_IsUserListManaged
   138  //go:noescape
   139  func FuncIsUserListManaged(fn unsafe.Pointer)
   140  
   141  //go:wasmimport plat/js/webext/usersprivate call_IsUserListManaged
   142  //go:noescape
   143  func CallIsUserListManaged(
   144  	retPtr unsafe.Pointer)
   145  
   146  //go:wasmimport plat/js/webext/usersprivate try_IsUserListManaged
   147  //go:noescape
   148  func TryIsUserListManaged(
   149  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   150  
   151  //go:wasmimport plat/js/webext/usersprivate has_RemoveUser
   152  //go:noescape
   153  func HasFuncRemoveUser() js.Ref
   154  
   155  //go:wasmimport plat/js/webext/usersprivate func_RemoveUser
   156  //go:noescape
   157  func FuncRemoveUser(fn unsafe.Pointer)
   158  
   159  //go:wasmimport plat/js/webext/usersprivate call_RemoveUser
   160  //go:noescape
   161  func CallRemoveUser(
   162  	retPtr unsafe.Pointer,
   163  	email js.Ref)
   164  
   165  //go:wasmimport plat/js/webext/usersprivate try_RemoveUser
   166  //go:noescape
   167  func TryRemoveUser(
   168  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   169  	email js.Ref) (ok js.Ref)