Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_finder_proto protoreflect.FileDescriptor
var Finder_ServiceDesc = grpc.ServiceDesc{ ServiceName: "finder.Finder", HandlerType: (*FinderServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "DiscoverOpportunity", Handler: _Finder_DiscoverOpportunity_Handler, ServerStreams: true, }, }, Metadata: "finder.proto", }
Finder_ServiceDesc is the grpc.ServiceDesc for Finder service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFinderServer ¶
func RegisterFinderServer(s grpc.ServiceRegistrar, srv FinderServer)
Types ¶
type FinderClient ¶
type FinderClient interface {
DiscoverOpportunity(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (Finder_DiscoverOpportunityClient, error)
}
FinderClient is the client API for Finder service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFinderClient ¶
func NewFinderClient(cc grpc.ClientConnInterface) FinderClient
type FinderServer ¶
type FinderServer interface { DiscoverOpportunity(*wrapperspb.StringValue, Finder_DiscoverOpportunityServer) error // contains filtered or unexported methods }
FinderServer is the server API for Finder service. All implementations must embed UnimplementedFinderServer for forward compatibility
type Finder_DiscoverOpportunityClient ¶
type Finder_DiscoverOpportunityClient interface { Recv() (*Stock, error) grpc.ClientStream }
type Finder_DiscoverOpportunityServer ¶
type Finder_DiscoverOpportunityServer interface { Send(*Stock) error grpc.ServerStream }
type Model ¶
type Model struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` // contains filtered or unexported fields }
func (*Model) Descriptor
deprecated
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type Stock ¶
type Stock struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Model *Model `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
func (*Stock) Descriptor
deprecated
func (*Stock) ProtoMessage ¶
func (*Stock) ProtoMessage()
func (*Stock) ProtoReflect ¶
func (x *Stock) ProtoReflect() protoreflect.Message
type UnimplementedFinderServer ¶
type UnimplementedFinderServer struct { }
UnimplementedFinderServer must be embedded to have forward compatible implementations.
func (UnimplementedFinderServer) DiscoverOpportunity ¶
func (UnimplementedFinderServer) DiscoverOpportunity(*wrapperspb.StringValue, Finder_DiscoverOpportunityServer) error
type UnsafeFinderServer ¶
type UnsafeFinderServer interface {
// contains filtered or unexported methods
}
UnsafeFinderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FinderServer will result in compilation errors.