grpc_downstream

package
v0.62.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGrpcDownstreamServer

func RegisterGrpcDownstreamServer(s *grpc.Server, srv GrpcDownstreamServer)

Types

type GetServiceDocRequest

type GetServiceDocRequest struct {
	Docid                string   `protobuf:"bytes,1,opt,name=docid,proto3" json:"docid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetServiceDocRequest) Descriptor

func (*GetServiceDocRequest) Descriptor() ([]byte, []int)

func (*GetServiceDocRequest) GetDocid

func (m *GetServiceDocRequest) GetDocid() string

func (*GetServiceDocRequest) ProtoMessage

func (*GetServiceDocRequest) ProtoMessage()

func (*GetServiceDocRequest) Reset

func (m *GetServiceDocRequest) Reset()

func (*GetServiceDocRequest) String

func (m *GetServiceDocRequest) String() string

func (*GetServiceDocRequest) XXX_DiscardUnknown

func (m *GetServiceDocRequest) XXX_DiscardUnknown()

func (*GetServiceDocRequest) XXX_Marshal

func (m *GetServiceDocRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetServiceDocRequest) XXX_Merge

func (m *GetServiceDocRequest) XXX_Merge(src proto.Message)

func (*GetServiceDocRequest) XXX_Size

func (m *GetServiceDocRequest) XXX_Size() int

func (*GetServiceDocRequest) XXX_Unmarshal

func (m *GetServiceDocRequest) XXX_Unmarshal(b []byte) error

type GetServiceDocResponse

type GetServiceDocResponse struct {
	ServiceDoc           *ServiceDoc `protobuf:"bytes,1,opt,name=serviceDoc,proto3" json:"serviceDoc,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetServiceDocResponse) Descriptor

func (*GetServiceDocResponse) Descriptor() ([]byte, []int)

func (*GetServiceDocResponse) GetServiceDoc

func (m *GetServiceDocResponse) GetServiceDoc() *ServiceDoc

func (*GetServiceDocResponse) ProtoMessage

func (*GetServiceDocResponse) ProtoMessage()

func (*GetServiceDocResponse) Reset

func (m *GetServiceDocResponse) Reset()

func (*GetServiceDocResponse) String

func (m *GetServiceDocResponse) String() string

func (*GetServiceDocResponse) XXX_DiscardUnknown

func (m *GetServiceDocResponse) XXX_DiscardUnknown()

func (*GetServiceDocResponse) XXX_Marshal

func (m *GetServiceDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetServiceDocResponse) XXX_Merge

func (m *GetServiceDocResponse) XXX_Merge(src proto.Message)

func (*GetServiceDocResponse) XXX_Size

func (m *GetServiceDocResponse) XXX_Size() int

func (*GetServiceDocResponse) XXX_Unmarshal

func (m *GetServiceDocResponse) XXX_Unmarshal(b []byte) error

type GrpcDownstreamClient

type GrpcDownstreamClient interface {
	GetServiceDoc(ctx context.Context, in *GetServiceDocRequest, opts ...grpc.CallOption) (*GetServiceDocResponse, error)
}

GrpcDownstreamClient is the client API for GrpcDownstream service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type GrpcDownstreamServer

type GrpcDownstreamServer interface {
	GetServiceDoc(context.Context, *GetServiceDocRequest) (*GetServiceDocResponse, error)
}

GrpcDownstreamServer is the server API for GrpcDownstream service.

type ServiceDoc

type ServiceDoc struct {
	Swagger              string   `protobuf:"bytes,1,opt,name=swagger,proto3" json:"swagger,omitempty"`
	Openapi              string   `protobuf:"bytes,2,opt,name=openapi,proto3" json:"openapi,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceDoc) Descriptor

func (*ServiceDoc) Descriptor() ([]byte, []int)

func (*ServiceDoc) GetOpenapi

func (m *ServiceDoc) GetOpenapi() string

func (*ServiceDoc) GetSwagger

func (m *ServiceDoc) GetSwagger() string

func (*ServiceDoc) ProtoMessage

func (*ServiceDoc) ProtoMessage()

func (*ServiceDoc) Reset

func (m *ServiceDoc) Reset()

func (*ServiceDoc) String

func (m *ServiceDoc) String() string

func (*ServiceDoc) XXX_DiscardUnknown

func (m *ServiceDoc) XXX_DiscardUnknown()

func (*ServiceDoc) XXX_Marshal

func (m *ServiceDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceDoc) XXX_Merge

func (m *ServiceDoc) XXX_Merge(src proto.Message)

func (*ServiceDoc) XXX_Size

func (m *ServiceDoc) XXX_Size() int

func (*ServiceDoc) XXX_Unmarshal

func (m *ServiceDoc) XXX_Unmarshal(b []byte) error

type UnimplementedGrpcDownstreamServer

type UnimplementedGrpcDownstreamServer struct {
}

UnimplementedGrpcDownstreamServer can be embedded to have forward compatible implementations.

func (*UnimplementedGrpcDownstreamServer) GetServiceDoc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL