pb

package
v0.0.0-...-d2b7790 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_finder_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetDesc

func (x *Model) GetDesc() string

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

func (x *Model) ProtoReflect() protoreflect.Message

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Stock.ProtoReflect.Descriptor instead.

func (*Stock) GetCode

func (x *Stock) GetCode() string

func (*Stock) GetModel

func (x *Stock) GetModel() *Model

func (*Stock) ProtoMessage

func (*Stock) ProtoMessage()

func (*Stock) ProtoReflect

func (x *Stock) ProtoReflect() protoreflect.Message

func (*Stock) Reset

func (x *Stock) Reset()

func (*Stock) String

func (x *Stock) String() string

type UnimplementedFinderServer

type UnimplementedFinderServer struct {
}

UnimplementedFinderServer must be embedded to have forward compatible implementations.

func (UnimplementedFinderServer) DiscoverOpportunity

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.

Jump to

Keyboard shortcuts

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