server

package
v0.0.0-...-6c09017 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 17 Imported by: 0

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.

Types

type MashupServer

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

server is used to implement server.MashupServer.

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) 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