server

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: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientAuthToken

func GetClientAuthToken() string

func GetServerAuthToken

func GetServerAuthToken() string

func InitServer

func InitServer(creds string, insecure bool, maxMessageLength int, mashupApiHandler mashupsdk.MashupApiHandler, mashupContextInitHandler mashupsdk.MashupContextInitHandler)

InitServer -- bootstraps the server portion of the sdk for the mashup.

func RemoteInitServer

func RemoteInitServer(creds string, insecure bool, maxMessageLength int, mashupApiHandler mashupsdk.MashupApiHandler, mashupContextInitHandler mashupsdk.MashupContextInitHandler)

RemoteInitServer -- Bootstraps the initialization of the remote server with the location specified in creds paramater

func SetServerConfigs

func SetServerConfigs(serverconfigs *sdk.MashupConnectionConfigs)

Types

type MashupServer

type MashupServer struct {
	sdk.UnimplementedMashupServerServer
	// contains filtered or unexported fields
}

server is used to implement server.MashupServer.

func (*MashupServer) CollaborateBootstrap

func (s *MashupServer) CollaborateBootstrap(ctx context.Context, in *sdk.MashupConnectionConfigs) (*sdk.MashupEmpty, error)

CollaborateBootstrap -- Alerts server to existence of client and server calls to client to connect

func (*MashupServer) GetElements

func (*MashupServer) OnDisplayChange

func (s *MashupServer) OnDisplayChange(ctx context.Context, in *sdk.MashupDisplayBundle) (*sdk.MashupDisplayHint, error)

OnDisplayChange -- handles a request from the client to resize.

func (*MashupServer) ResetStates

func (s *MashupServer) ResetStates(ctx context.Context, in *sdk.MashupEmpty) (*emptypb.Empty, error)

func (*MashupServer) SetHandler

func (s *MashupServer) SetHandler(mashupApiHandler mashupsdk.MashupApiHandler)

func (*MashupServer) Shutdown

func (s *MashupServer) Shutdown(ctx context.Context, in *sdk.MashupEmpty) (*sdk.MashupEmpty, error)

Shutdown -- handles request to shut down the mashup.

func (*MashupServer) TweakStates

Jump to

Keyboard shortcuts

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