github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/metricsprivateindividualapis/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/metricsprivateindividualapis has_RecordEnumerationValue
    20  //go:noescape
    21  func HasFuncRecordEnumerationValue() js.Ref
    22  
    23  //go:wasmimport plat/js/webext/metricsprivateindividualapis func_RecordEnumerationValue
    24  //go:noescape
    25  func FuncRecordEnumerationValue(fn unsafe.Pointer)
    26  
    27  //go:wasmimport plat/js/webext/metricsprivateindividualapis call_RecordEnumerationValue
    28  //go:noescape
    29  func CallRecordEnumerationValue(
    30  	retPtr unsafe.Pointer,
    31  	metricName js.Ref,
    32  	value float64,
    33  	enumSize float64)
    34  
    35  //go:wasmimport plat/js/webext/metricsprivateindividualapis try_RecordEnumerationValue
    36  //go:noescape
    37  func TryRecordEnumerationValue(
    38  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    39  	metricName js.Ref,
    40  	value float64,
    41  	enumSize float64) (ok js.Ref)
    42  
    43  //go:wasmimport plat/js/webext/metricsprivateindividualapis has_RecordMediumTime
    44  //go:noescape
    45  func HasFuncRecordMediumTime() js.Ref
    46  
    47  //go:wasmimport plat/js/webext/metricsprivateindividualapis func_RecordMediumTime
    48  //go:noescape
    49  func FuncRecordMediumTime(fn unsafe.Pointer)
    50  
    51  //go:wasmimport plat/js/webext/metricsprivateindividualapis call_RecordMediumTime
    52  //go:noescape
    53  func CallRecordMediumTime(
    54  	retPtr unsafe.Pointer,
    55  	metricName js.Ref,
    56  	value float64)
    57  
    58  //go:wasmimport plat/js/webext/metricsprivateindividualapis try_RecordMediumTime
    59  //go:noescape
    60  func TryRecordMediumTime(
    61  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    62  	metricName js.Ref,
    63  	value float64) (ok js.Ref)
    64  
    65  //go:wasmimport plat/js/webext/metricsprivateindividualapis has_RecordUserAction
    66  //go:noescape
    67  func HasFuncRecordUserAction() js.Ref
    68  
    69  //go:wasmimport plat/js/webext/metricsprivateindividualapis func_RecordUserAction
    70  //go:noescape
    71  func FuncRecordUserAction(fn unsafe.Pointer)
    72  
    73  //go:wasmimport plat/js/webext/metricsprivateindividualapis call_RecordUserAction
    74  //go:noescape
    75  func CallRecordUserAction(
    76  	retPtr unsafe.Pointer,
    77  	name js.Ref)
    78  
    79  //go:wasmimport plat/js/webext/metricsprivateindividualapis try_RecordUserAction
    80  //go:noescape
    81  func TryRecordUserAction(
    82  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    83  	name js.Ref) (ok js.Ref)