Skip to content

Releases: poteto-go/poteto

v1.3.3

18 Jan 16:28
d90bbee
Compare
Choose a tag to compare

1.3.X

1.3.3

  • Bump github.com/goccy/go-yaml from 1.15.15 to 1.15.17 in #216
  • Bump github.com/goccy/go-json from 0.10.4 to 0.10.5 in #217

1.3.2

1.3.1

  • DEBUG: add some debug mode log by @poteto0 in #213
  • FEAT: env for setting poteto option by @poteto0 in #213
  • Bump github.com/goccy/go-yaml from 1.15.13 to 1.15.15 in #211

1.3.0

  • DEP: Poteto's go version update -> 1.23 by @poteto0 in #207
  • FEAT: startUpWorkflows run function just before server start in #204
    NOTE:
func main() {
  p := New()
  
  // run function just before server#Serve
  p.RegisterWorkflow(constant.START_UP_WORKFLOW, 1, func() error)
}

v1.2.1

15 Jan 12:21
d7a806b
Compare
Choose a tag to compare

1.2.X

1.2.1

1.2.0

v1.1.1

09 Jan 15:06
00b2936
Compare
Choose a tag to compare

1.1.1

1.1.0

v1.0.1

03 Jan 09:47
295a526
Compare
Choose a tag to compare

Full changelog from v0.26.5.

1.0.1

1.0.0

0.26.5

18 Dec 11:57
68f071e
Compare
Choose a tag to compare

Changelog

Full change log from v0.25.3

0.26.5

0.26.4

  • REFACT: poteto & middleware by @poteto0 in #171
  • FEAT: ctx.SetResponseHeader(key, value string) internal call res.Header().Set(key, value string) by @poteto0 in #171
  • FEAT: Response.SetHeader(key, value string) internal call writer.Header().Set(key, value string) by @poteto0 in #171
  • FEAT: ctx.GetRequestHeaderParam(key string) string internal call req.Header().Get(key string) string by @poteto0 in #171
  • FEAT: ctx.ExtractRequestHeaderParam(key string) []string internal call return req.Header[key] by @poteto0 in #171
  • FEAT: AddHeader(key, value string) internal call writer.Add(key, value string) by @poteto0 in #171

0.26.3

  • TEST: fix not ut in poteto-cli by @poteto0 in #168
  • FEAT: FEAT: poteto-cli new -d | --docker gen with Dockerfile & docker-compose.yaml by @poteto0 in #168
  • FEAT: poteto-cli new -j | --jsonrpc gen jsonrpc template by @poteto0 in #166

0.26.2

  • TEST: add benchmark by @poteto0 in #164
  • Build(deps): bump github.com/goccy/go-yaml from 1.15.10 to 1.15.13 in #163

0.26.1

0.26.0

  • FEATURE: PotetoJSONAdapter provides json rpc by @poteto0 in #154

KeyNote: You can serve JSONRPC server easily.

type (
  Calculator struct{}
  AdditionArgs   struct {
    Add, Added int
  }
)

func (tc *TestCalculator) Add(r *http.Request, args *AdditionArgs) int {
 return args.Add + args.Added
}

func main() {
  p := New()

  rpc := TestCalculator{}
  // you can access "/add/Calculator.Add"
  p.POST("/add", func(ctx Context) error {
    return PotetoJsonRPCAdapter[Calculator, AdditionArgs](ctx, &rpc)
  })

  p.Run("8080")
}
  • FEATURE: Poteto.RunTLS serve https server provided cert & key file by @poteto0 in #144

v0.25.3

09 Dec 12:04
0e4e3f2
Compare
Choose a tag to compare

Changes

full change log from v0.24.0

0.25.3

  • Bump github.com/goccy/go-json from 0.10.3 to 0.10.4 in #152
  • Bump github.com/goccy/go-yaml from 1.15.7 to 1.15.10 in #151

0.25.2

0.25.1

0.25.0

  • FEATURE: poteto-cli released by @poteto0 in #133
  • DEPENDENCY: Bump github.com/goccy/go-yaml from 1.15.5 to 1.15.7 in #134

v0.24.0

29 Nov 08:53
f419f5a
Compare
Choose a tag to compare

Changes

full change log from v0.23.0