Code Monkey home page Code Monkey logo

go-jwt-issuer's Introduction

go-jwt-issuer

Microservice generates the pair of JSON web tokens - access-token and refresh-token are signed by user identifier.

๐Ÿ“Œ In order to deploy on Kubernetes cluster:

make docker-build
make kube-ns
make redis-secret password=secret
make kube-apply

๐Ÿ“Œ Run k9s -n gons to see gojwtissuer-dpl-* pod logs.

๐Ÿ“Œ Run/debug dlv configuration from IDE.

โ”‚ API server listening at: :56268                                                                                                                                     โ”‚
โ”‚ 2023-04-09T12:20:31Z warning layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)                                           โ”‚
โ”‚ 2023-04-09T12:20:31Z info layer=debugger launching process with args: [/app]                                                                                        โ”‚
โ”‚ 2023-04-09T12:22:18Z debug layer=debugger continuing                                                                                                                โ”‚
โ”‚ 2023/04/09 12:22:18 established connection: Redis<redis:6379 db:0>                                                                                                  โ”‚
โ”‚ 2023/04/09 12:22:18 starting server on :8080 

๐Ÿ“Œ Add breakpoint.

โ”‚ 2023-04-09T12:23:29Z debug layer=debugger halting                                                                                                                   โ”‚
โ”‚ 2023-04-09T12:23:29Z info layer=debugger created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x3536d0, Addrs:[]uint64{0x3536d0}, AddrPid:[]int{13}, File:"/buil โ”‚
โ”‚ 2023-04-09T12:23:29Z debug layer=debugger continuing  

๐Ÿ“Œ Execute request.

โ”‚ 2023-04-09T12:24:39Z debug layer=debugger nexting                                                                                                                   โ”‚
โ”‚ 2023-04-09T12:24:39Z debug layer=debugger nexting                                                                                                                   โ”‚
โ”‚ 2023-04-09T12:25:06Z debug layer=debugger continuing                                                                                                                โ”‚
โ”‚ 2023-04-09T12:25:08Z debug layer=debugger halting                                                                                                                   โ”‚
โ”‚ 2023-04-09T12:25:08Z info layer=debugger cleared breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x3536d0, Addrs:[]uint64{0x3536d0}, AddrPid:[]int{13}, File:"/buil โ”‚
โ”‚ 2023-04-09T12:25:08Z debug layer=debugger continuing

๐Ÿ“Œ Delete resources make kube-delete.

Debugging an application

go-jwt-issuer's People

Contributors

oleksiivelychko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.