Documentation
¶
Index ¶
- Variables
- func RegisterEnqueuerServiceServer(s grpc.ServiceRegistrar, srv EnqueuerServiceServer)
- type Action
- type AllowedDomain
- func (*AllowedDomain) Descriptor() ([]byte, []int)deprecated
- func (x *AllowedDomain) GetDomain() string
- func (x *AllowedDomain) GetUrlRegexValidator() string
- func (*AllowedDomain) ProtoMessage()
- func (x *AllowedDomain) ProtoReflect() protoreflect.Message
- func (x *AllowedDomain) Reset()
- func (x *AllowedDomain) String() string
- type Enqueuer
- func (*Enqueuer) Descriptor() ([]byte, []int)deprecated
- func (x *Enqueuer) GetAllowedDomain() []*AllowedDomain
- func (x *Enqueuer) GetDurationInMinutes() uint32
- func (x *Enqueuer) GetMaxDepth() uint32
- func (x *Enqueuer) GetModified() *timestamppb.Timestamp
- func (x *Enqueuer) GetRules() []*Rule
- func (x *Enqueuer) GetSourceId() int32
- func (x *Enqueuer) GetStartUrl() string
- func (x *Enqueuer) GetStatus() Status
- func (*Enqueuer) ProtoMessage()
- func (x *Enqueuer) ProtoReflect() protoreflect.Message
- func (x *Enqueuer) Reset()
- func (x *Enqueuer) String() string
- type EnqueuerMessage
- type EnqueuerServiceClient
- type EnqueuerServiceServer
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Rule) GetAction() Action
- func (x *Rule) GetAttribute() string
- func (x *Rule) GetName() string
- func (x *Rule) GetSelector() string
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- type SourceIdMessage
- type Status
- type UnimplementedEnqueuerServiceServer
- func (UnimplementedEnqueuerServiceServer) CreateEnqueuer(context.Context, *EnqueuerMessage) (*emptypb.Empty, error)
- func (UnimplementedEnqueuerServiceServer) ListEnqueuer(context.Context, *SourceIdMessage) (*EnqueuerMessage, error)
- func (UnimplementedEnqueuerServiceServer) StartEnqueuer(context.Context, *SourceIdMessage) (*emptypb.Empty, error)
- func (UnimplementedEnqueuerServiceServer) StopEnqueuer(context.Context, *SourceIdMessage) (*emptypb.Empty, error)
- type UnsafeEnqueuerServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Action_name = map[int32]string{ 0: "SEARCH", 1: "DOWNLOAD", } Action_value = map[string]int32{ "SEARCH": 0, "DOWNLOAD": 1, } )
Enum value maps for Action.
var ( Status_name = map[int32]string{ 0: "STOPPED", 1: "STARTED", } Status_value = map[string]int32{ "STOPPED": 0, "STARTED": 1, } )
Enum value maps for Status.
var EnqueuerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tickerscraper.v1.EnqueuerService", HandlerType: (*EnqueuerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateEnqueuer", Handler: _EnqueuerService_CreateEnqueuer_Handler, }, { MethodName: "ListEnqueuer", Handler: _EnqueuerService_ListEnqueuer_Handler, }, { MethodName: "StartEnqueuer", Handler: _EnqueuerService_StartEnqueuer_Handler, }, { MethodName: "StopEnqueuer", Handler: _EnqueuerService_StopEnqueuer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
EnqueuerService_ServiceDesc is the grpc.ServiceDesc for EnqueuerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_proto protoreflect.FileDescriptor
var File_enqueuer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEnqueuerServiceServer ¶
func RegisterEnqueuerServiceServer(s grpc.ServiceRegistrar, srv EnqueuerServiceServer)
Types ¶
type Action ¶ added in v0.24.2
type Action int32
func (Action) Descriptor ¶ added in v0.24.2
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
added in
v0.24.2
func (Action) Number ¶ added in v0.24.2
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶ added in v0.24.2
func (Action) Type() protoreflect.EnumType
type AllowedDomain ¶
type AllowedDomain struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` UrlRegexValidator string `protobuf:"bytes,2,opt,name=url_regex_validator,json=urlRegexValidator,proto3" json:"url_regex_validator,omitempty"` // contains filtered or unexported fields }
func (*AllowedDomain) Descriptor
deprecated
func (*AllowedDomain) Descriptor() ([]byte, []int)
Deprecated: Use AllowedDomain.ProtoReflect.Descriptor instead.
func (*AllowedDomain) GetDomain ¶
func (x *AllowedDomain) GetDomain() string
func (*AllowedDomain) GetUrlRegexValidator ¶
func (x *AllowedDomain) GetUrlRegexValidator() string
func (*AllowedDomain) ProtoMessage ¶
func (*AllowedDomain) ProtoMessage()
func (*AllowedDomain) ProtoReflect ¶
func (x *AllowedDomain) ProtoReflect() protoreflect.Message
func (*AllowedDomain) Reset ¶
func (x *AllowedDomain) Reset()
func (*AllowedDomain) String ¶
func (x *AllowedDomain) String() string
type Enqueuer ¶
type Enqueuer struct { SourceId int32 `protobuf:"varint,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` StartUrl string `protobuf:"bytes,2,opt,name=start_url,json=startUrl,proto3" json:"start_url,omitempty"` AllowedDomain []*AllowedDomain `protobuf:"bytes,3,rep,name=allowed_domain,json=allowedDomain,proto3" json:"allowed_domain,omitempty"` DurationInMinutes uint32 `protobuf:"varint,4,opt,name=duration_in_minutes,json=durationInMinutes,proto3" json:"duration_in_minutes,omitempty"` MaxDepth uint32 `protobuf:"varint,5,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"` Status Status `protobuf:"varint,6,opt,name=status,proto3,enum=tickerscraper.v1.Status" json:"status,omitempty"` Rules []*Rule `protobuf:"bytes,7,rep,name=rules,proto3" json:"rules,omitempty"` Modified *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=modified,proto3" json:"modified,omitempty"` // contains filtered or unexported fields }
Deal: A deal is the reflection of the fact of a trade operation execution based on an order that contains a trade request
func (*Enqueuer) Descriptor
deprecated
func (*Enqueuer) GetAllowedDomain ¶
func (x *Enqueuer) GetAllowedDomain() []*AllowedDomain
func (*Enqueuer) GetDurationInMinutes ¶
func (*Enqueuer) GetMaxDepth ¶
func (*Enqueuer) GetModified ¶
func (x *Enqueuer) GetModified() *timestamppb.Timestamp
func (*Enqueuer) GetSourceId ¶
func (*Enqueuer) GetStartUrl ¶
func (*Enqueuer) ProtoMessage ¶
func (*Enqueuer) ProtoMessage()
func (*Enqueuer) ProtoReflect ¶
func (x *Enqueuer) ProtoReflect() protoreflect.Message
type EnqueuerMessage ¶
type EnqueuerMessage struct { Enqueuer *Enqueuer `protobuf:"bytes,1,opt,name=enqueuer,proto3" json:"enqueuer,omitempty"` // contains filtered or unexported fields }
func (*EnqueuerMessage) Descriptor
deprecated
func (*EnqueuerMessage) Descriptor() ([]byte, []int)
Deprecated: Use EnqueuerMessage.ProtoReflect.Descriptor instead.
func (*EnqueuerMessage) GetEnqueuer ¶
func (x *EnqueuerMessage) GetEnqueuer() *Enqueuer
func (*EnqueuerMessage) ProtoMessage ¶
func (*EnqueuerMessage) ProtoMessage()
func (*EnqueuerMessage) ProtoReflect ¶
func (x *EnqueuerMessage) ProtoReflect() protoreflect.Message
func (*EnqueuerMessage) Reset ¶
func (x *EnqueuerMessage) Reset()
func (*EnqueuerMessage) String ¶
func (x *EnqueuerMessage) String() string
type EnqueuerServiceClient ¶
type EnqueuerServiceClient interface { CreateEnqueuer(ctx context.Context, in *EnqueuerMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) ListEnqueuer(ctx context.Context, in *SourceIdMessage, opts ...grpc.CallOption) (*EnqueuerMessage, error) StartEnqueuer(ctx context.Context, in *SourceIdMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) StopEnqueuer(ctx context.Context, in *SourceIdMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) }
EnqueuerServiceClient is the client API for EnqueuerService 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 NewEnqueuerServiceClient ¶
func NewEnqueuerServiceClient(cc grpc.ClientConnInterface) EnqueuerServiceClient
type EnqueuerServiceServer ¶
type EnqueuerServiceServer interface { CreateEnqueuer(context.Context, *EnqueuerMessage) (*emptypb.Empty, error) ListEnqueuer(context.Context, *SourceIdMessage) (*EnqueuerMessage, error) StartEnqueuer(context.Context, *SourceIdMessage) (*emptypb.Empty, error) StopEnqueuer(context.Context, *SourceIdMessage) (*emptypb.Empty, error) // contains filtered or unexported methods }
EnqueuerServiceServer is the server API for EnqueuerService service. All implementations must embed UnimplementedEnqueuerServiceServer for forward compatibility
type Rule ¶
type Rule struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Action Action `protobuf:"varint,2,opt,name=action,proto3,enum=tickerscraper.v1.Action" json:"action,omitempty"` Selector string `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"` Attribute string `protobuf:"bytes,4,opt,name=attribute,proto3" json:"attribute,omitempty"` // contains filtered or unexported fields }
func (*Rule) Descriptor
deprecated
func (*Rule) GetAttribute ¶
func (*Rule) GetSelector ¶
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type SourceIdMessage ¶
type SourceIdMessage struct { SourceId int32 `protobuf:"varint,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` // contains filtered or unexported fields }
func (*SourceIdMessage) Descriptor
deprecated
func (*SourceIdMessage) Descriptor() ([]byte, []int)
Deprecated: Use SourceIdMessage.ProtoReflect.Descriptor instead.
func (*SourceIdMessage) GetSourceId ¶
func (x *SourceIdMessage) GetSourceId() int32
func (*SourceIdMessage) ProtoMessage ¶
func (*SourceIdMessage) ProtoMessage()
func (*SourceIdMessage) ProtoReflect ¶
func (x *SourceIdMessage) ProtoReflect() protoreflect.Message
func (*SourceIdMessage) Reset ¶
func (x *SourceIdMessage) Reset()
func (*SourceIdMessage) String ¶
func (x *SourceIdMessage) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedEnqueuerServiceServer ¶
type UnimplementedEnqueuerServiceServer struct { }
UnimplementedEnqueuerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEnqueuerServiceServer) CreateEnqueuer ¶
func (UnimplementedEnqueuerServiceServer) CreateEnqueuer(context.Context, *EnqueuerMessage) (*emptypb.Empty, error)
func (UnimplementedEnqueuerServiceServer) ListEnqueuer ¶
func (UnimplementedEnqueuerServiceServer) ListEnqueuer(context.Context, *SourceIdMessage) (*EnqueuerMessage, error)
func (UnimplementedEnqueuerServiceServer) StartEnqueuer ¶
func (UnimplementedEnqueuerServiceServer) StartEnqueuer(context.Context, *SourceIdMessage) (*emptypb.Empty, error)
func (UnimplementedEnqueuerServiceServer) StopEnqueuer ¶
func (UnimplementedEnqueuerServiceServer) StopEnqueuer(context.Context, *SourceIdMessage) (*emptypb.Empty, error)
type UnsafeEnqueuerServiceServer ¶
type UnsafeEnqueuerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEnqueuerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EnqueuerServiceServer will result in compilation errors.