proto

package
v0.0.0-...-316f095 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_lib_srv_lib_proto protoreflect.FileDescriptor
View Source
var LibraryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pp.contractor.LibraryService",
	HandlerType: (*LibraryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "MakeAsPurchased",
			Handler:    _LibraryService_MakeAsPurchased_Handler,
		},
		{
			MethodName: "SearchSubmittedReviews",
			Handler:    _LibraryService_SearchSubmittedReviews_Handler,
		},
		{
			MethodName: "MakeValidatorModeration",
			Handler:    _LibraryService_MakeValidatorModeration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lib-srv/lib.proto",
}

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

Functions

func RegisterLibraryServiceServer

func RegisterLibraryServiceServer(s grpc.ServiceRegistrar, srv LibraryServiceServer)

Types

type LibraryServiceClient

type LibraryServiceClient interface {
	MakeAsPurchased(ctx context.Context, in *MakeAsPurchasedRequest, opts ...grpc.CallOption) (*Null, error)
	SearchSubmittedReviews(ctx context.Context, in *SearchWorkReviewsRequest, opts ...grpc.CallOption) (*SearchReviewsResponse, error)
	MakeValidatorModeration(ctx context.Context, in *ValidatorModeration, opts ...grpc.CallOption) (*Null, error)
}

LibraryServiceClient is the client API for LibraryService 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 LibraryServiceServer

type LibraryServiceServer interface {
	MakeAsPurchased(context.Context, *MakeAsPurchasedRequest) (*Null, error)
	SearchSubmittedReviews(context.Context, *SearchWorkReviewsRequest) (*SearchReviewsResponse, error)
	MakeValidatorModeration(context.Context, *ValidatorModeration) (*Null, error)
	// contains filtered or unexported methods
}

LibraryServiceServer is the server API for LibraryService service. All implementations must embed UnimplementedLibraryServiceServer for forward compatibility

type MakeAsPurchasedRequest

type MakeAsPurchasedRequest struct {
	ReaderAddress string `protobuf:"bytes,1,opt,name=reader_address,json=readerAddress,proto3" json:"reader_address,omitempty"`
	WorkId        string `protobuf:"bytes,2,opt,name=work_id,json=workId,proto3" json:"work_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MakeAsPurchasedRequest) Descriptor deprecated

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

Deprecated: Use MakeAsPurchasedRequest.ProtoReflect.Descriptor instead.

func (*MakeAsPurchasedRequest) GetReaderAddress

func (x *MakeAsPurchasedRequest) GetReaderAddress() string

func (*MakeAsPurchasedRequest) GetWorkId

func (x *MakeAsPurchasedRequest) GetWorkId() string

func (*MakeAsPurchasedRequest) ProtoMessage

func (*MakeAsPurchasedRequest) ProtoMessage()

func (*MakeAsPurchasedRequest) ProtoReflect

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

func (*MakeAsPurchasedRequest) Reset

func (x *MakeAsPurchasedRequest) Reset()

func (*MakeAsPurchasedRequest) String

func (x *MakeAsPurchasedRequest) String() string

type Null

type Null struct {
	// contains filtered or unexported fields
}

func (*Null) Descriptor deprecated

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

Deprecated: Use Null.ProtoReflect.Descriptor instead.

func (*Null) ProtoMessage

func (*Null) ProtoMessage()

func (*Null) ProtoReflect

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

func (*Null) Reset

func (x *Null) Reset()

func (*Null) String

func (x *Null) String() string

type SearchReviewsResponse

type SearchReviewsResponse struct {
	WorkReviews map[string]*timestamppb.Timestamp `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SearchReviewsResponse) Descriptor deprecated

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

Deprecated: Use SearchReviewsResponse.ProtoReflect.Descriptor instead.

func (*SearchReviewsResponse) GetWorkReviews

func (x *SearchReviewsResponse) GetWorkReviews() map[string]*timestamppb.Timestamp

func (*SearchReviewsResponse) ProtoMessage

func (*SearchReviewsResponse) ProtoMessage()

func (*SearchReviewsResponse) ProtoReflect

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

func (*SearchReviewsResponse) Reset

func (x *SearchReviewsResponse) Reset()

func (*SearchReviewsResponse) String

func (x *SearchReviewsResponse) String() string

type SearchWorkReviewsRequest

type SearchWorkReviewsRequest struct {
	Address string                 `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Since   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=since,proto3" json:"since,omitempty"`
	Until   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=until,proto3" json:"until,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchWorkReviewsRequest) Descriptor deprecated

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

Deprecated: Use SearchWorkReviewsRequest.ProtoReflect.Descriptor instead.

func (*SearchWorkReviewsRequest) GetAddress

func (x *SearchWorkReviewsRequest) GetAddress() string

func (*SearchWorkReviewsRequest) GetSince

func (*SearchWorkReviewsRequest) GetUntil

func (*SearchWorkReviewsRequest) ProtoMessage

func (*SearchWorkReviewsRequest) ProtoMessage()

func (*SearchWorkReviewsRequest) ProtoReflect

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

func (*SearchWorkReviewsRequest) Reset

func (x *SearchWorkReviewsRequest) Reset()

func (*SearchWorkReviewsRequest) String

func (x *SearchWorkReviewsRequest) String() string

type UnimplementedLibraryServiceServer

type UnimplementedLibraryServiceServer struct {
}

UnimplementedLibraryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLibraryServiceServer) MakeAsPurchased

func (UnimplementedLibraryServiceServer) MakeValidatorModeration

func (UnimplementedLibraryServiceServer) SearchSubmittedReviews

type UnsafeLibraryServiceServer

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

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

type ValidatorModeration

type ValidatorModeration struct {
	ValidatorId string `protobuf:"bytes,1,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"`
	IsSuccess   bool   `protobuf:"varint,2,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorModeration) Descriptor deprecated

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

Deprecated: Use ValidatorModeration.ProtoReflect.Descriptor instead.

func (*ValidatorModeration) GetIsSuccess

func (x *ValidatorModeration) GetIsSuccess() bool

func (*ValidatorModeration) GetValidatorId

func (x *ValidatorModeration) GetValidatorId() string

func (*ValidatorModeration) ProtoMessage

func (*ValidatorModeration) ProtoMessage()

func (*ValidatorModeration) ProtoReflect

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

func (*ValidatorModeration) Reset

func (x *ValidatorModeration) Reset()

func (*ValidatorModeration) String

func (x *ValidatorModeration) String() string

Jump to

Keyboard shortcuts

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