robotsevaluator

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RobotsEvaluator_IsAllowed_FullMethodName = "/veidemann.api.robotsevaluator.v1.RobotsEvaluator/isAllowed"
)

Variables

View Source
var File_robotsevaluator_v1_robotsevaluator_proto protoreflect.FileDescriptor
View Source
var RobotsEvaluator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "veidemann.api.robotsevaluator.v1.RobotsEvaluator",
	HandlerType: (*RobotsEvaluatorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "isAllowed",
			Handler:    _RobotsEvaluator_IsAllowed_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "robotsevaluator/v1/robotsevaluator.proto",
}

RobotsEvaluator_ServiceDesc is the grpc.ServiceDesc for RobotsEvaluator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRobotsEvaluatorServer

func RegisterRobotsEvaluatorServer(s grpc.ServiceRegistrar, srv RobotsEvaluatorServer)

Types

type IsAllowedReply

type IsAllowedReply struct {
	IsAllowed   bool                         `protobuf:"varint,1,opt,name=is_allowed,json=isAllowed,proto3" json:"is_allowed,omitempty"`
	CrawlDelay  float32                      `protobuf:"fixed32,2,opt,name=crawl_delay,json=crawlDelay,proto3" json:"crawl_delay,omitempty"`
	CacheDelay  float32                      `protobuf:"fixed32,3,opt,name=cache_delay,json=cacheDelay,proto3" json:"cache_delay,omitempty"`
	Sitemap     []string                     `protobuf:"bytes,4,rep,name=sitemap,proto3" json:"sitemap,omitempty"`
	OtherFields []*IsAllowedReply_OtherField `protobuf:"bytes,5,rep,name=other_fields,json=otherFields,proto3" json:"other_fields,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAllowedReply) Descriptor deprecated

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

Deprecated: Use IsAllowedReply.ProtoReflect.Descriptor instead.

func (*IsAllowedReply) GetCacheDelay

func (x *IsAllowedReply) GetCacheDelay() float32

func (*IsAllowedReply) GetCrawlDelay

func (x *IsAllowedReply) GetCrawlDelay() float32

func (*IsAllowedReply) GetIsAllowed

func (x *IsAllowedReply) GetIsAllowed() bool

func (*IsAllowedReply) GetOtherFields

func (x *IsAllowedReply) GetOtherFields() []*IsAllowedReply_OtherField

func (*IsAllowedReply) GetSitemap

func (x *IsAllowedReply) GetSitemap() []string

func (*IsAllowedReply) ProtoMessage

func (*IsAllowedReply) ProtoMessage()

func (*IsAllowedReply) ProtoReflect

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

func (*IsAllowedReply) Reset

func (x *IsAllowedReply) Reset()

func (*IsAllowedReply) String

func (x *IsAllowedReply) String() string

type IsAllowedReply_OtherField

type IsAllowedReply_OtherField struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAllowedReply_OtherField) Descriptor deprecated

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

Deprecated: Use IsAllowedReply_OtherField.ProtoReflect.Descriptor instead.

func (*IsAllowedReply_OtherField) GetName

func (x *IsAllowedReply_OtherField) GetName() string

func (*IsAllowedReply_OtherField) GetValue

func (x *IsAllowedReply_OtherField) GetValue() string

func (*IsAllowedReply_OtherField) ProtoMessage

func (*IsAllowedReply_OtherField) ProtoMessage()

func (*IsAllowedReply_OtherField) ProtoReflect

func (*IsAllowedReply_OtherField) Reset

func (x *IsAllowedReply_OtherField) Reset()

func (*IsAllowedReply_OtherField) String

func (x *IsAllowedReply_OtherField) String() string

type IsAllowedRequest

type IsAllowedRequest struct {
	JobExecutionId string               `protobuf:"bytes,1,opt,name=job_execution_id,json=jobExecutionId,proto3" json:"job_execution_id,omitempty"`
	ExecutionId    string               `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"`
	Uri            string               `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	UserAgent      string               `protobuf:"bytes,4,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	Politeness     *config.ConfigObject `protobuf:"bytes,5,opt,name=politeness,proto3" json:"politeness,omitempty"`
	CollectionRef  *config.ConfigRef    `protobuf:"bytes,6,opt,name=collection_ref,json=collectionRef,proto3" json:"collection_ref,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAllowedRequest) Descriptor deprecated

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

Deprecated: Use IsAllowedRequest.ProtoReflect.Descriptor instead.

func (*IsAllowedRequest) GetCollectionRef

func (x *IsAllowedRequest) GetCollectionRef() *config.ConfigRef

func (*IsAllowedRequest) GetExecutionId

func (x *IsAllowedRequest) GetExecutionId() string

func (*IsAllowedRequest) GetJobExecutionId

func (x *IsAllowedRequest) GetJobExecutionId() string

func (*IsAllowedRequest) GetPoliteness

func (x *IsAllowedRequest) GetPoliteness() *config.ConfigObject

func (*IsAllowedRequest) GetUri

func (x *IsAllowedRequest) GetUri() string

func (*IsAllowedRequest) GetUserAgent

func (x *IsAllowedRequest) GetUserAgent() string

func (*IsAllowedRequest) ProtoMessage

func (*IsAllowedRequest) ProtoMessage()

func (*IsAllowedRequest) ProtoReflect

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

func (*IsAllowedRequest) Reset

func (x *IsAllowedRequest) Reset()

func (*IsAllowedRequest) String

func (x *IsAllowedRequest) String() string

type RobotsEvaluatorClient

type RobotsEvaluatorClient interface {
	IsAllowed(ctx context.Context, in *IsAllowedRequest, opts ...grpc.CallOption) (*IsAllowedReply, error)
}

RobotsEvaluatorClient is the client API for RobotsEvaluator 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.

Service for checking robots.txt rules.

type RobotsEvaluatorServer

type RobotsEvaluatorServer interface {
	IsAllowed(context.Context, *IsAllowedRequest) (*IsAllowedReply, error)
	// contains filtered or unexported methods
}

RobotsEvaluatorServer is the server API for RobotsEvaluator service. All implementations must embed UnimplementedRobotsEvaluatorServer for forward compatibility.

Service for checking robots.txt rules.

type UnimplementedRobotsEvaluatorServer

type UnimplementedRobotsEvaluatorServer struct{}

UnimplementedRobotsEvaluatorServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedRobotsEvaluatorServer) IsAllowed

type UnsafeRobotsEvaluatorServer

type UnsafeRobotsEvaluatorServer interface {
	// contains filtered or unexported methods
}

UnsafeRobotsEvaluatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RobotsEvaluatorServer will result in compilation errors.

Jump to

Keyboard shortcuts

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