goappinstancectrl

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 2 Imported by: 0

README

GoAppInstanceCtrl

Application Instance Control for GO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAppInstance

func InitAppInstance(appID string) (s *single.Single, err error)

InitAppInstance initialises an instance of the application based on the value of `appID`. An error will be returned if another instance of the application instance is detected (based on the `appID`). You should handle this error as appropriate for your situation. Call this when your application starts.

func ReleaseAppInstance

func ReleaseAppInstance(s *single.Single) (err error)

ReleaseAppInstance will release(unlock) an instance of the application. An error will be returned if this should fail for any reason. You should handle the error as appropriate for you situation. Call this when your application is exiting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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