package
0.0.0-20231014214933-bf83fb330073
Repository: https://github.com/skyrin/go-lib.git
Documentation: pkg.go.dev
# Functions
CleanExpiredGrants removes all grants where the refresh token has expired and is no longer usable.
DataProcessorSkip marks the arc_data record as pending (skipping so it will process again).
GetGrant returns the grant associated with the token if it exists.
GetMigrationList returns this packages migration list.
Refresh calls refresh internally and saves to the DB.
NewClient returns a new client to handle requests to the arc notification service.
NewClientFromDeployment initializes a client from the arc_deployments table.
NewDataHandler creates a new Data Handler for saving arc data events into the arc_data table.
NewDataProcess returns a new instance of a data processor f: defines the function that will be called to handle each record orderList: if specified, defines the order in which to fetch the records based on the type.
NewDeployment initializes a new deployment and returns it.
NewDeploymentNotify create a new deployment notify instance.
No description provided by the author
# Constants
No description provided by the author
DefaultID is the default id number to use in the request.
DefaultPath is the default path to the arc notification service.
DefaultVersion is the default version number to use in the request.
Not logged in error.
These constants refer to some possible error codes that come from an arc deployment API call (not within this library).
Invalid user for oauth2.Grant.login.
Invalid grant error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Client handles the posting/making arc requests to an arc API server.
DataHandler handler for deployment data events.
DataProcessor reads all pending records in the arc_data table and calls the app specific function to process it, then marks them all as processed.
No description provided by the author
DeploymentNotify use to listen for change events to records in the arc_deployment table.
Grant.
GrantUserinfo.
RequestItem is an item from a RequestList.
RequestItemOption defines possible options for a request item.
RequestList formats a request to send to an arc API server.
Response represents the response from Arc.
ResponseList represents the notification service response.