sysl-go

module
v0.297.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0

README

Sysl-go

Communication library used by SYSL-generated code written in Go.

Getting Started

Code

go get github.com/anz-bank/sysl-go

Docker

docker pull anzbank/sysl-go:latest

docker run --rm -v $(pwd):/mount:ro anzbank/sysl-go /sysl-go/codegen/arrai/service.arrai github.com/anz-bank/sysl-template/gen /mount/api/project.json simple rest-app | tar xf - -C gen/simple

See sysl-template for more examples

Local Development

Ensure your environment provides:

On OSX, after installing go 1.18 run

brew install golangci/tap/golangci-lint make curl protoc-gen-go grpc

Development

Test and lint everything with

make

View all relevant make targets with

make help

View test coverage in the browser with

make coverage

Logging

Sysl-go comes equipped with flexible, out-of-the-box logging support.

For complete information see Logging.

Directories

Path Synopsis
codegen
Package jsontime gives simple marshalling directly to and from time objects
Package jsontime gives simple marshalling directly to and from time objects
Package jwtauth manages request authentication with jwts
Package jwtauth manages request authentication with jwts
jwthttp
Commonly used handler cases, to be added to over time as more use cases arise
Commonly used handler cases, to be added to over time as more use cases arise
Package mock contains testing utilities and mocks shared between packages.
Package mock contains testing utilities and mocks shared between packages.
e2e

Jump to

Keyboard shortcuts

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