client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 21 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapInit

func BootstrapInit(mashupPath string,
	mashupApiHandler mashupsdk.MashupApiHandler,
	envParams []string,
	params []string,
	insecure *bool) *mashupsdk.MashupContext

For a remote server/client initialization, ensure envParams is of the form: [remote server name, remote server port, client server name, client server port] Also for a remote server/client initialization, ensure params is of the format: ["remote", Remote Server Auth Token] For client initialization where the server does not know the client's address, ensure params if of the form: ["flume", Server Auth Token]

func BootstrapInitWithMessageExt

func BootstrapInitWithMessageExt(mashupPath string,
	mashupApiHandler mashupsdk.MashupApiHandler,
	envParams []string,
	params []string,
	insecure *bool, maxMessageLength int) *mashupsdk.MashupContext

BootstrapInitWithMessageExt - main entry point for bootstrapping the sdk. This will fork a mashup, connect with it, and handshake with it to establish shared set of credentials to be used in future transactions.

func GetServerAuthToken

func GetServerAuthToken() string

func InitDialOptions

func InitDialOptions(dialOption grpc.DialOption)

Types

type MashupClient

type MashupClient struct {
	mashupsdk.UnimplementedMashupServerServer
	// contains filtered or unexported fields
}

func (*MashupClient) CollaborateInit

CollaborateInit - Implementation of the handshake. During the callback from the mashup, construct new more permanent set of credentials to be shared.

func (*MashupClient) GetElements

Shutdown -- handles request to shut down the mashup.

func (*MashupClient) OnDisplayChange

func (*MashupClient) Shutdown

Shutdown -- handles request to shut down the mashup.

Jump to

Keyboard shortcuts

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