v1

package
v0.0.0-...-450f465 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SitemapService_Parse_FullMethodName = "/infrastructure.rpc.sitemap.v1.SitemapService/Parse"
)

Variables

View Source
var File_infrastructure_rpc_sitemap_v1_sitemap_proto protoreflect.FileDescriptor
View Source
var SitemapService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "infrastructure.rpc.sitemap.v1.SitemapService",
	HandlerType: (*SitemapServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Parse",
			Handler:    _SitemapService_Parse_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "infrastructure/rpc/sitemap/v1/sitemap.proto",
}

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

Functions

func RegisterSitemapServiceServer

func RegisterSitemapServiceServer(s grpc.ServiceRegistrar, srv SitemapServiceServer)

Types

type ParseRequest

type ParseRequest struct {

	// URL is the URL of the sitemap to parse.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

ParseRequest is the request message for Parse.

func (*ParseRequest) Descriptor deprecated

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

Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.

func (*ParseRequest) GetUrl

func (x *ParseRequest) GetUrl() string

func (*ParseRequest) ProtoMessage

func (*ParseRequest) ProtoMessage()

func (*ParseRequest) ProtoReflect

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

func (*ParseRequest) Reset

func (x *ParseRequest) Reset()

func (*ParseRequest) String

func (x *ParseRequest) String() string

type Sitemap

type Sitemap struct {
	SitemapServiceServer
	// contains filtered or unexported fields
}

func New

func New(runRPCServer *rpc.Server, application *sitemap_application.Service, log logger.Logger) (*Sitemap, error)

func (*Sitemap) Parse

func (s *Sitemap) Parse(ctx context.Context, in *ParseRequest) (*emptypb.Empty, error)

type SitemapServiceClient

type SitemapServiceClient interface {
	// Parse parses a sitemap.
	Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

SitemapServiceClient is the client API for SitemapService 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.

type SitemapServiceServer

type SitemapServiceServer interface {
	// Parse parses a sitemap.
	Parse(context.Context, *ParseRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

SitemapServiceServer is the server API for SitemapService service. All implementations must embed UnimplementedSitemapServiceServer for forward compatibility

type UnimplementedSitemapServiceServer

type UnimplementedSitemapServiceServer struct {
}

UnimplementedSitemapServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSitemapServiceServer) Parse

type UnsafeSitemapServiceServer

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

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

Jump to

Keyboard shortcuts

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