Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_infrastructure_rpc_sitemap_v1_sitemap_proto protoreflect.FileDescriptor
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 string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
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 }
type SitemapServiceClient ¶
type SitemapServiceClient interface {
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.
func NewSitemapServiceClient ¶
func NewSitemapServiceClient(cc grpc.ClientConnInterface) SitemapServiceClient
type SitemapServiceServer ¶
type SitemapServiceServer interface { 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 ¶
func (UnimplementedSitemapServiceServer) Parse(context.Context, *ParseRequest) (*emptypb.Empty, error)
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.