uricanonicalizer

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 (
	UriCanonicalizerService_Canonicalize_FullMethodName = "/veidemann.api.uricanonicalizer.v1.UriCanonicalizerService/Canonicalize"
)

Variables

View Source
var File_uricanonicalizer_v1_uricanonicalizer_proto protoreflect.FileDescriptor
View Source
var UriCanonicalizerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "veidemann.api.uricanonicalizer.v1.UriCanonicalizerService",
	HandlerType: (*UriCanonicalizerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Canonicalize",
			Handler:    _UriCanonicalizerService_Canonicalize_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "uricanonicalizer/v1/uricanonicalizer.proto",
}

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

Functions

func RegisterUriCanonicalizerServiceServer

func RegisterUriCanonicalizerServiceServer(s grpc.ServiceRegistrar, srv UriCanonicalizerServiceServer)

Types

type CanonicalizeRequest

type CanonicalizeRequest struct {
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

func (*CanonicalizeRequest) Descriptor deprecated

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

Deprecated: Use CanonicalizeRequest.ProtoReflect.Descriptor instead.

func (*CanonicalizeRequest) GetUri

func (x *CanonicalizeRequest) GetUri() string

func (*CanonicalizeRequest) ProtoMessage

func (*CanonicalizeRequest) ProtoMessage()

func (*CanonicalizeRequest) ProtoReflect

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

func (*CanonicalizeRequest) Reset

func (x *CanonicalizeRequest) Reset()

func (*CanonicalizeRequest) String

func (x *CanonicalizeRequest) String() string

type CanonicalizeResponse

type CanonicalizeResponse struct {
	Uri *commons.ParsedUri `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

func (*CanonicalizeResponse) Descriptor deprecated

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

Deprecated: Use CanonicalizeResponse.ProtoReflect.Descriptor instead.

func (*CanonicalizeResponse) GetUri

func (x *CanonicalizeResponse) GetUri() *commons.ParsedUri

func (*CanonicalizeResponse) ProtoMessage

func (*CanonicalizeResponse) ProtoMessage()

func (*CanonicalizeResponse) ProtoReflect

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

func (*CanonicalizeResponse) Reset

func (x *CanonicalizeResponse) Reset()

func (*CanonicalizeResponse) String

func (x *CanonicalizeResponse) String() string

type UnimplementedUriCanonicalizerServiceServer

type UnimplementedUriCanonicalizerServiceServer struct{}

UnimplementedUriCanonicalizerServiceServer 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 (UnimplementedUriCanonicalizerServiceServer) Canonicalize

type UnsafeUriCanonicalizerServiceServer

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

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

type UriCanonicalizerServiceClient

type UriCanonicalizerServiceClient interface {
	// Canonicalize URI for crawling.
	// Examples of canonicalization could be:
	// * Remove port numbers for well known schemes (i.e. http://example.com:80 => http://example.com)
	// * Normalize slash for empty path (i.e. http://example.com => http://example.com/)
	// * Normalize path (i.e. http://example.com/a//b/./c => http://example.com/a/b/c)
	Canonicalize(ctx context.Context, in *CanonicalizeRequest, opts ...grpc.CallOption) (*CanonicalizeResponse, error)
}

UriCanonicalizerServiceClient is the client API for UriCanonicalizerService 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 URI canonicalization.

type UriCanonicalizerServiceServer

type UriCanonicalizerServiceServer interface {
	// Canonicalize URI for crawling.
	// Examples of canonicalization could be:
	// * Remove port numbers for well known schemes (i.e. http://example.com:80 => http://example.com)
	// * Normalize slash for empty path (i.e. http://example.com => http://example.com/)
	// * Normalize path (i.e. http://example.com/a//b/./c => http://example.com/a/b/c)
	Canonicalize(context.Context, *CanonicalizeRequest) (*CanonicalizeResponse, error)
	// contains filtered or unexported methods
}

UriCanonicalizerServiceServer is the server API for UriCanonicalizerService service. All implementations must embed UnimplementedUriCanonicalizerServiceServer for forward compatibility.

Service for URI canonicalization.

Jump to

Keyboard shortcuts

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