proto

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_scraper_proto protoreflect.FileDescriptor
View Source
var ScraperService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "adventofcode.ScraperService",
	HandlerType: (*ScraperServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Scrape",
			Handler:    _ScraperService_Scrape_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "scraper.proto",
}

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

Functions

func RegisterScraperServiceServer

func RegisterScraperServiceServer(s grpc.ServiceRegistrar, srv ScraperServiceServer)

Types

type ScrapeRequest

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

func (*ScrapeRequest) Descriptor deprecated

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

Deprecated: Use ScrapeRequest.ProtoReflect.Descriptor instead.

func (*ScrapeRequest) GetUrl

func (x *ScrapeRequest) GetUrl() string

func (*ScrapeRequest) ProtoMessage

func (*ScrapeRequest) ProtoMessage()

func (*ScrapeRequest) ProtoReflect

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

func (*ScrapeRequest) Reset

func (x *ScrapeRequest) Reset()

func (*ScrapeRequest) String

func (x *ScrapeRequest) String() string

type ScrapeResponse

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

func (*ScrapeResponse) Descriptor deprecated

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

Deprecated: Use ScrapeResponse.ProtoReflect.Descriptor instead.

func (*ScrapeResponse) GetBody

func (x *ScrapeResponse) GetBody() string

func (*ScrapeResponse) ProtoMessage

func (*ScrapeResponse) ProtoMessage()

func (*ScrapeResponse) ProtoReflect

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

func (*ScrapeResponse) Reset

func (x *ScrapeResponse) Reset()

func (*ScrapeResponse) String

func (x *ScrapeResponse) String() string

type ScraperServiceClient

type ScraperServiceClient interface {
	Scrape(ctx context.Context, in *ScrapeRequest, opts ...grpc.CallOption) (*ScrapeResponse, error)
}

ScraperServiceClient is the client API for ScraperService 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 ScraperServiceServer

type ScraperServiceServer interface {
	Scrape(context.Context, *ScrapeRequest) (*ScrapeResponse, error)
}

ScraperServiceServer is the server API for ScraperService service. All implementations should embed UnimplementedScraperServiceServer for forward compatibility

type UnimplementedScraperServiceServer

type UnimplementedScraperServiceServer struct {
}

UnimplementedScraperServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedScraperServiceServer) Scrape

type UnsafeScraperServiceServer

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

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

Jump to

Keyboard shortcuts

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