Categorygithub.com/pisign/pisign-backend
modulepackage
0.1.0
Repository: https://github.com/pisign/pisign-backend.git
Documentation: pkg.go.dev

# README

pisign-backend

Build Status codecov License: GPL v3

Development

Copy the script post-commit into your git hooks folder,

./.git/hooks/

This makes it so that the specfile in spec gets automatically updates whenever we update the external API types defined in the types/ folder.

Testing

When testing a specific package, inside the package's directory, use

go test -coverprofile /tmp/cp.out

to run tests and show test coverage. To view the coverage in a browser, use

go tool cover -html=/tmp/cp.out

to visualize what parts of the code are not being tested.

To test all files, run

go test ./...

from the root directory to test everything inside the repo.

# Packages

Package api spins up new api instances to connect to client widgets based on name.
No description provided by the author
Package mock_types is a generated GoMock package.
No description provided by the author
Package server much of the code comes from https://tutorialedge.net/projects/chat-system-in-go-and-react/part-4-handling-multiple-clients/ Two main routes: - /ws creates a new websocket connection - /layouts?name=<name> retrieves a given layout, stored in a `json` file on the server.
Package socket creates and manages Sockets from the client Each 'Socket' represents a single Socket on the client, and has its own websocket connection.
No description provided by the author
No description provided by the author