Questions tagged [go-micro]

Pluggable RPC framework for writing microservices in Go (golang).

Pluggable RPC framework for writing microservices in Go (golang). It's part of the Micro toolkit.
go-micro on GitHub.

48 questions
19
votes
1 answer

Not able to connect to grpc from nodejs/python client

My grpc server is in go (go-micro), and it working fine, I have tested both via micro web and go web app (iris). This is a local grpc setup I keep getting this error (Stream removed) { Error: 2 UNKNOWN: Stream removed at new createStatusError…
HamidRaza
  • 640
  • 1
  • 7
  • 15
11
votes
2 answers

How to install Go package manually from source code

I'm living in China and is not able to download & install GO package through command (event I use the vpn network): go get -u but I can access the repo_url and downloand its source code. So my question is can I put the scource code…
rellocs wood
  • 1,381
  • 4
  • 21
  • 36
5
votes
2 answers

Difference between go-micro and go-grpc

I have constructed a "go-micro" service. From what I understand, go-micro uses protobuf to define and create the messages structures & used gRPC as the network protocol (I of course might be wrong here). If the above it correct, than what does the…
TCS
  • 5,790
  • 5
  • 54
  • 86
4
votes
0 answers

consul.watch: Watch (type: services) errored: Unexpected response code: 400 (Client sent an HTTP request to an HTTPS server

I am creating a web service in go micro... service := web.NewService( web.Name(""), web.Address(""), web.Advertise(""), web.RegisterTTL(time.Second*30), web.Registry(reg), …
Arpit Pruthi
  • 177
  • 10
3
votes
1 answer

Go micro dashboard does not register my service when running inside docker-compose

I'm new to go-micro, tried to have micro server running as another service in my docker-compose setup however my first micro-service is not getting show in Micro Web (the Go Micro dashboard). If I run micro server outside docker-compose I can see…
shackra
  • 277
  • 3
  • 16
  • 56
3
votes
0 answers

Why go-micro Kubernetes plugin requires to register the pod to registry?

I have a question regarding how to use go-micro with Kubernetes. AFAIK, Kubernetes already has kube-dns for service discovery and kube-proxy with Service abstraction to expose the pods. Is it possible to use go-micro, but skip the kubernetes…
Agung Pratama
  • 3,666
  • 7
  • 36
  • 77
2
votes
0 answers

How to query Go-micro services(v2) inside docker with curl or postman

I use Go-micro(v2) to deploy services inside docker-compose user-service: build: context: ./user-service restart: always ports: - "8086:8086" deploy: mode: replicated replicas: 1 environment:.... See…
Jerome
  • 294
  • 2
  • 14
2
votes
0 answers

I have three Micro services in Golang made using gin, Books, Ratings, Reviews API, now i want to get the result of rating an API in Books API

I have three Micro services in Golang made using gin, Books, Ratings, Reviews API, now i want to get the result of rating an API in Books API.Basically how do i connect my three api/Micro-services, using gin, i don't know how to use docker and…
2
votes
1 answer

Call gRPC service (Go-micro) from Go client through Traefik

I'm using Go-micro, Docker, Traefik to deploy my service. I deployed go-micro service and registered with Traefik. This is my sum(grpc service) status in Traefik dashboard. When i curl it in Terminal, I got this result, I thought it's grpc message…
2
votes
2 answers

micro_out: protoc-gen-micro: Plugin failed

I am trying out go-micro and I have issues genearating .micro boilerplate code. I have set my env and even passed the direct directory of my GOPATH but got error /Users/Olar/home/golib/bin/protoc-gen-micro: program not found or is not executable…
King
  • 1,885
  • 3
  • 27
  • 84
2
votes
0 answers

High wait time Before getting the response or the context deadline exceeded go-micro

I have a grpc client written using go-micro, which is making a call to grpc microservice which is further connecting to elastic search to get the search result. My web service where I am creating my grpc client and the grpc service making connection…
Arpit Pruthi
  • 177
  • 10
2
votes
2 answers

build command-line-arguments: cannot load local package: cannot find module providing package

I am unable to load local package using go mod. I have seperate go.mod files for repoA and repoB. I have found no solution anywhere. OS is windows. $> go version go version go1.12.7 windows/amd64 I have two modules with repository, when I run main…
Himanshu
  • 12,071
  • 7
  • 46
  • 61
2
votes
0 answers

How to set broker.SubscriberOptions in go-micro

I am trying to configure a RabbitMQ broker using the go-micro framework. I have noticed that the broker interface in go-micro has a broker.SubscriberOptions struct which allows configuring the parameters I am looking for (AutoAck, Queue name and so…
Alexandre Thenorio
  • 2,288
  • 3
  • 31
  • 50
2
votes
1 answer

Why client always received "transport: received the unexpected content-type" from localhost GO wrote GRPC service

I have just cloned the example code from micro/go-grpc and tried to build a grpc server in localhost. proto file syntax = "proto3"; package go.micro.srv.greeter; service Say { rpc Hello(Request) returns (Response) {} } message Request { …
wade
  • 23
  • 2
  • 9
2
votes
2 answers

Call function of specific type in Go

I'm a complete Go newbie, so sorry for the question in advance. I'm trying to work with a so-defined interface to connect to a message broker: // Broker is an interface used for asynchronous messaging. type Broker interface { Options()…
patreu22
  • 2,988
  • 4
  • 22
  • 31
1
2 3 4