Categorygithub.com/payboxth/go-slip
modulepackage
0.0.0-20210420151602-b72562b2a3c5
Repository: https://github.com/payboxth/go-slip.git
Documentation: pkg.go.dev

# README

go-slip

Go Package Library for e-Slip generator. MIT license. This package has dependency required WkHTML.

Purpose

This project use to reduce slip paper for any POS or web application and let's customer or user choose to get an e-receipt via scan on-screen QR code or shortlink URL. So customer will redirect to service web and display or download slip file in PNG format for any purpose.

How it's work

Mobile Client or Caller service make a RESTful API call for NewSlip() function and service return a Shorten-URL link for client to use for download or display a file

sequenceDiagram;
  participant Caller
  participant Service
  participant GCS
  Caller->>Service: Create Slip (json)
  Note over Service: Create slip file image
  Service->>GCS: Store image (png)
  GCS->>Service: Success
  Service->>Caller: Slip URL

How to test

  1. Create Google Cloud Storage - new Bucket such as "paybox_slip" as you see in "/slip/repository/gcs_test.go"

  2. Create your Google Cloud - Service Account and place in "$HOME/secret/" and rename as paybox_slip_key.json

  3. then just run...

go test -v ./...

or to test just some package.

go test -v ./repository

# Packages

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

# Functions

No description provided by the author

# Variables

domain1 errors.

# Structs

No description provided by the author
Create.
Create.
Find.
Find.
No description provided by the author

# Interfaces

Database is the slip database interface.
Endpoint is the slip endpoint.
No description provided by the author
No description provided by the author
Storage is the slip storage interface for save image file.