Documentation
¶
Overview ¶
Package backend is a generated protocol buffer package.
It is generated from these files:
backend.proto
It has these top-level messages:
ScrapeReq ScrapeResp PinReq PinResp
Index ¶
- Variables
- func RegisterBackendServiceServer(s *grpc.Server, srv BackendServiceServer)
- type BackendServer
- type BackendServiceClient
- type BackendServiceServer
- type PinReq
- func (*PinReq) Descriptor() ([]byte, []int)
- func (this *PinReq) Equal(that interface{}) bool
- func (m *PinReq) GetHash() string
- func (m *PinReq) GetId() string
- func (this *PinReq) GoString() string
- func (m *PinReq) Marshal() (dAtA []byte, err error)
- func (m *PinReq) MarshalTo(dAtA []byte) (int, error)
- func (*PinReq) ProtoMessage()
- func (m *PinReq) Reset()
- func (m *PinReq) Size() (n int)
- func (this *PinReq) String() string
- func (m *PinReq) Unmarshal(dAtA []byte) error
- type PinResp
- func (*PinResp) Descriptor() ([]byte, []int)
- func (this *PinResp) Equal(that interface{}) bool
- func (m *PinResp) GetId() string
- func (this *PinResp) GoString() string
- func (m *PinResp) Marshal() (dAtA []byte, err error)
- func (m *PinResp) MarshalTo(dAtA []byte) (int, error)
- func (*PinResp) ProtoMessage()
- func (m *PinResp) Reset()
- func (m *PinResp) Size() (n int)
- func (this *PinResp) String() string
- func (m *PinResp) Unmarshal(dAtA []byte) error
- type ScrapeReq
- func (*ScrapeReq) Descriptor() ([]byte, []int)
- func (this *ScrapeReq) Equal(that interface{}) bool
- func (m *ScrapeReq) GetId() string
- func (m *ScrapeReq) GetUrl() string
- func (this *ScrapeReq) GoString() string
- func (m *ScrapeReq) Marshal() (dAtA []byte, err error)
- func (m *ScrapeReq) MarshalTo(dAtA []byte) (int, error)
- func (*ScrapeReq) ProtoMessage()
- func (m *ScrapeReq) Reset()
- func (m *ScrapeReq) Size() (n int)
- func (this *ScrapeReq) String() string
- func (m *ScrapeReq) Unmarshal(dAtA []byte) error
- type ScrapeResp
- func (*ScrapeResp) Descriptor() ([]byte, []int)
- func (this *ScrapeResp) Equal(that interface{}) bool
- func (m *ScrapeResp) GetArchiveUrl() string
- func (m *ScrapeResp) GetHash() string
- func (m *ScrapeResp) GetId() string
- func (this *ScrapeResp) GoString() string
- func (m *ScrapeResp) Marshal() (dAtA []byte, err error)
- func (m *ScrapeResp) MarshalTo(dAtA []byte) (int, error)
- func (*ScrapeResp) ProtoMessage()
- func (m *ScrapeResp) Reset()
- func (m *ScrapeResp) Size() (n int)
- func (this *ScrapeResp) String() string
- func (m *ScrapeResp) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBackend = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBackend = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterBackendServiceServer ¶
func RegisterBackendServiceServer(s *grpc.Server, srv BackendServiceServer)
Types ¶
type BackendServer ¶
type BackendServer struct {
// contains filtered or unexported fields
}
func (*BackendServer) Scrape ¶
func (b *BackendServer) Scrape(ctx netctx.Context, req *ScrapeReq) (*ScrapeResp, error)
type BackendServiceClient ¶
type BackendServiceClient interface {
Pin(ctx context.Context, in *PinReq, opts ...grpc.CallOption) (*PinResp, error)
Scrape(ctx context.Context, in *ScrapeReq, opts ...grpc.CallOption) (*ScrapeResp, error)
}
func NewBackendServiceClient ¶
func NewBackendServiceClient(cc *grpc.ClientConn) BackendServiceClient
type BackendServiceServer ¶
type PinReq ¶
type PinReq struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (*PinReq) Descriptor ¶
func (*PinReq) ProtoMessage ¶
func (*PinReq) ProtoMessage()
type PinResp ¶
type PinResp struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*PinResp) Descriptor ¶
func (*PinResp) ProtoMessage ¶
func (*PinResp) ProtoMessage()
type ScrapeReq ¶
type ScrapeReq struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
}
func (*ScrapeReq) Descriptor ¶
func (*ScrapeReq) ProtoMessage ¶
func (*ScrapeReq) ProtoMessage()
type ScrapeResp ¶
type ScrapeResp struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ArchiveUrl string `protobuf:"bytes,2,opt,name=archive_url,json=archiveUrl,proto3" json:"archive_url,omitempty"`
Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (*ScrapeResp) Descriptor ¶
func (*ScrapeResp) Descriptor() ([]byte, []int)
func (*ScrapeResp) Equal ¶
func (this *ScrapeResp) Equal(that interface{}) bool
func (*ScrapeResp) GetArchiveUrl ¶
func (m *ScrapeResp) GetArchiveUrl() string
func (*ScrapeResp) GetHash ¶
func (m *ScrapeResp) GetHash() string
func (*ScrapeResp) GetId ¶
func (m *ScrapeResp) GetId() string
func (*ScrapeResp) GoString ¶
func (this *ScrapeResp) GoString() string
func (*ScrapeResp) Marshal ¶
func (m *ScrapeResp) Marshal() (dAtA []byte, err error)
func (*ScrapeResp) ProtoMessage ¶
func (*ScrapeResp) ProtoMessage()
func (*ScrapeResp) Reset ¶
func (m *ScrapeResp) Reset()
func (*ScrapeResp) Size ¶
func (m *ScrapeResp) Size() (n int)
func (*ScrapeResp) String ¶
func (this *ScrapeResp) String() string
func (*ScrapeResp) Unmarshal ¶
func (m *ScrapeResp) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.