Add web and update deps
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
||||
// source: github.com/micro/go-plugins/transport/grpc/proto/transport.proto
|
||||
// source: go-micro/transport/grpc/proto/transport.proto
|
||||
|
||||
/*
|
||||
Package go_micro_grpc_transport is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
github.com/micro/go-plugins/transport/grpc/proto/transport.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Message
|
||||
*/
|
||||
package go_micro_grpc_transport
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "context"
|
||||
@@ -31,7 +24,7 @@ var _ = math.Inf
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
@@ -114,7 +107,7 @@ type TransportHandler interface {
|
||||
Stream(context.Context, Transport_StreamStream) error
|
||||
}
|
||||
|
||||
func RegisterTransportHandler(s server.Server, hdlr TransportHandler, opts ...server.HandlerOption) {
|
||||
func RegisterTransportHandler(s server.Server, hdlr TransportHandler, opts ...server.HandlerOption) error {
|
||||
type transport interface {
|
||||
Stream(ctx context.Context, stream server.Stream) error
|
||||
}
|
||||
@@ -122,7 +115,7 @@ func RegisterTransportHandler(s server.Server, hdlr TransportHandler, opts ...se
|
||||
transport
|
||||
}
|
||||
h := &transportHandler{hdlr}
|
||||
s.Handle(s.NewHandler(&Transport{h}, opts...))
|
||||
return s.Handle(s.NewHandler(&Transport{h}, opts...))
|
||||
}
|
||||
|
||||
type transportHandler struct {
|
||||
|
||||
Reference in New Issue
Block a user