gnonative

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 22 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

type BridgeConfig

type BridgeConfig struct {
	RootDir            string
	TmpDir             string
	UseTcpListener     bool
	DisableUdsListener 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