Categorygithub.com/Skyrin/go-lib
modulepackage
0.0.0-20231014214933-bf83fb330073
Repository: https://github.com/skyrin/go-lib.git
Documentation: pkg.go.dev

# README

go-lib

# Packages

No description provided by the author
Package arc provides the necessary calls to publish notifications to the arc system Basic Usage sample: Create a new client and set the base url for the service client := arc.NewClient("https://example.com") You also have the ability to set the URL and path by using SetBaseURL and SetPath Create a request, replace with the appropriate values for eventCode and publishKey req := arc.CreateArcsignalEventPublishRequest("eventCode", "publishKey", err) Add at least one request, can add several client.AddRequest(req) Send the request if err := client.Send(); err != nil { return err }.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package migration provides automatic database migration capabilities Basic Usage sample: Errors should be handled, but ignored for example code migrator, _ := migration.NewMigrator(db *sql.Connection) _ = migrator.AddMigrationList(arc.GetMigrationList()) // See below _ = migrator.Upgrade() Example package that defines migrations var migrations embed.FS const ( MIGRATION_CODE = "arc" ) // GetMigrationList returns this packages migration list func GetMigrationList() (ml *migration.List) { return migration.NewList(MIGRATION_CODE, migration.MIGRATION_PATH, migrations) }.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Version returns the version/build path to this in order for it to be usable.

# Variables

Build the build number.
Sha the commit sha.