gnonative

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	ServiceClient
	// contains filtered or unexported fields
}

func NewBridge

func NewBridge(config *BridgeConfig) (*Bridge, error)

func (*Bridge) Close

func (b *Bridge) Close() error

func (*Bridge) GetTcpAddr

func (b *Bridge) GetTcpAddr() string

func (*Bridge) GetTcpPort

func (b *Bridge) GetTcpPort() int

func (*Bridge) GetUDSPath

func (b *Bridge) GetUDSPath() string

func (*Bridge) StartGnokeyMobileService added in v1.6.0

func (b *Bridge) StartGnokeyMobileService() error

Start the Gnokey Mobile service and save it in gnokeyMobileService. This will be closed in Close(). If the gnonative serviceServer is not started, do nothing. If gnokeyMobileService is already started, do nothing.

type BridgeConfig

type BridgeConfig struct {
	RootDir            string
	TmpDir             string
	UseTcpListener     bool
	DisableUdsListener bool
	UseGnokeyMobile    bool
}

func NewBridgeConfig

func NewBridgeConfig() *BridgeConfig

type PromiseBlock

type PromiseBlock interface {
	CallResolve(reply string)
	CallReject(error error)
}

type ServiceClient

type ServiceClient interface {
	InvokeGrpcMethodWithPromiseBlock(promise PromiseBlock, method string, jsonMessage string)
	CreateStreamClientWithPromiseBlock(promise PromiseBlock, method string, jsonMessage string)
	StreamClientReceiveWithPromiseBlock(promise PromiseBlock, id string)
	CloseStreamClientWithPromiseBlock(promise PromiseBlock, id string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL