Giter Site home page Giter Site logo

krakend-examples's People

Contributors

ildarusmanov avatar kpacha avatar novalagung 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

krakend-examples's Issues

Poor description

Why shall I test this krakenD example? There is no description, no motivation, and no sense at all visible.

chi example don't work because wrong url pattern

I create a simple demo like /user/info/{uid}, it works fine with gin example, but the chi example always return 404 not found, I dig around and found URIParser.GetEndpointPath would convert endpoint from /user/info/{uid} to /user/info/:uid, which adapted by colon style gin router, but failed in brace style router by chi.

I had to add a convert function after config parsed to change the endpoint url back to brace style and it finally works, any good idea besides this one?

var reg = regexp.MustCompile(`:\w+`)

func convert(cfg config.ServiceConfig) {
	for _, e := range cfg.Endpoints {
		if !strings.Contains(e.Endpoint, ":") {
			continue
		}
		e.Endpoint = reg.ReplaceAllStringFunc(e.Endpoint, func(s string) string {
			return "{" + s[1:] + "}"
		})
	}
}

httpcache example is not working

Hi,

Hope you are all well !

I tried to run the httpcache example but it displays the following error:

  panic: runtime error: invalid memory address or nil pointer dereference
  [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x91c62d]
 
  goroutine 1 [running]:
  github.com/devopsfaith/krakend/router/gin.ginRouter.Run(0xc000138c80, 0xf21998, 0x0, 0x0, 0xc000114ee0, 0xb1fd20, 0xc00010f580, 0xb2ed80, 0xc00010f520, 0x0, ...)
  	/go/pkg/mod/github.com/devopsfaith/[email protected]/router/gin/router.go:96 +0x3ad
  main.main()
  	/app/main.go:56 +0x657

Is it possible to fix ? how to fix it ?

Thanks in advance for your insights or inputs on that topic.

Cheers,
X

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.