Documentation ¶
Index ¶
- func GetClientAuthToken() string
- func GetServerAuthToken() string
- func InitServer(creds string, insecure bool, maxMessageLength int, ...)
- func RemoteInitServer(creds string, insecure bool, maxMessageLength int, ...)
- func SetServerConfigs(serverconfigs *sdk.MashupConnectionConfigs)
- type MashupServer
- func (s *MashupServer) CollaborateBootstrap(ctx context.Context, in *sdk.MashupConnectionConfigs) (*sdk.MashupEmpty, error)
- func (s *MashupServer) GetElements(ctx context.Context, in *sdk.MashupEmpty) (*sdk.MashupDetailedElementBundle, error)
- func (s *MashupServer) OnDisplayChange(ctx context.Context, in *sdk.MashupDisplayBundle) (*sdk.MashupDisplayHint, error)
- func (s *MashupServer) ResetStates(ctx context.Context, in *sdk.MashupEmpty) (*emptypb.Empty, error)
- func (s *MashupServer) SetHandler(mashupApiHandler mashupsdk.MashupApiHandler)
- func (s *MashupServer) Shutdown(ctx context.Context, in *sdk.MashupEmpty) (*sdk.MashupEmpty, error)
- func (s *MashupServer) TweakStates(ctx context.Context, in *sdk.MashupElementStateBundle) (*sdk.MashupElementStateBundle, error)
- func (s *MashupServer) UpsertElements(ctx context.Context, in *sdk.MashupDetailedElementBundle) (*sdk.MashupDetailedElementBundle, error)
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 (s *MashupServer) GetElements(ctx context.Context, in *sdk.MashupEmpty) (*sdk.MashupDetailedElementBundle, error)
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 ¶
func (s *MashupServer) TweakStates(ctx context.Context, in *sdk.MashupElementStateBundle) (*sdk.MashupElementStateBundle, error)
func (*MashupServer) UpsertElements ¶
func (s *MashupServer) UpsertElements(ctx context.Context, in *sdk.MashupDetailedElementBundle) (*sdk.MashupDetailedElementBundle, error)
Click to show internal directories.
Click to hide internal directories.