Documentation ¶
Index ¶
- Variables
- func RegisterAdvertServiceServer(s *grpc.Server, srv AdvertServiceServer)
- type Advert
- func (*Advert) Descriptor() ([]byte, []int)deprecated
- func (x *Advert) GetActivatedAt() *timestamp.Timestamp
- func (x *Advert) GetCategoryId() uint32
- func (x *Advert) GetCreatedAt() *timestamp.Timestamp
- func (x *Advert) GetDescription() string
- func (x *Advert) GetId() uint64
- func (x *Advert) GetPrice() float32
- func (x *Advert) GetStatus() uint32
- func (x *Advert) GetTitle() string
- func (x *Advert) GetUpdatedAt() *timestamp.Timestamp
- func (x *Advert) GetUserId() uint64
- func (*Advert) ProtoMessage()
- func (x *Advert) ProtoReflect() protoreflect.Message
- func (x *Advert) Reset()
- func (x *Advert) String() string
- type AdvertServiceClient
- type AdvertServiceServer
- type AdvertService_ReadAllClient
- type AdvertService_ReadAllServer
- type Filter
- type UnimplementedAdvertServiceServer
- func (*UnimplementedAdvertServiceServer) Create(context.Context, *Advert) (*Advert, error)
- func (*UnimplementedAdvertServiceServer) Delete(context.Context, *Advert) (*Advert, error)
- func (*UnimplementedAdvertServiceServer) Read(context.Context, *Filter) (*Advert, error)
- func (*UnimplementedAdvertServiceServer) ReadAll(*empty.Empty, AdvertService_ReadAllServer) error
- func (*UnimplementedAdvertServiceServer) Update(context.Context, *Advert) (*Advert, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var File_advert_message_proto protoreflect.FileDescriptor
View Source
var File_advert_service_proto protoreflect.FileDescriptor
View Source
var File_filter_message_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdvertServiceServer ¶
func RegisterAdvertServiceServer(s *grpc.Server, srv AdvertServiceServer)
Types ¶
type Advert ¶
type Advert struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CategoryId uint32 `protobuf:"varint,2,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` UserId uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Price float32 `protobuf:"fixed32,6,opt,name=price,proto3" json:"price,omitempty"` Status uint32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` ActivatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=activated_at,json=activatedAt,proto3" json:"activated_at,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Advert) Descriptor
deprecated
func (*Advert) GetActivatedAt ¶
func (*Advert) GetCategoryId ¶
func (*Advert) GetCreatedAt ¶
func (*Advert) GetDescription ¶
func (*Advert) GetUpdatedAt ¶
func (*Advert) ProtoMessage ¶
func (*Advert) ProtoMessage()
func (*Advert) ProtoReflect ¶
func (x *Advert) ProtoReflect() protoreflect.Message
type AdvertServiceClient ¶
type AdvertServiceClient interface { Create(ctx context.Context, in *Advert, opts ...grpc.CallOption) (*Advert, error) Read(ctx context.Context, in *Filter, opts ...grpc.CallOption) (*Advert, error) ReadAll(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (AdvertService_ReadAllClient, error) Update(ctx context.Context, in *Advert, opts ...grpc.CallOption) (*Advert, error) Delete(ctx context.Context, in *Advert, opts ...grpc.CallOption) (*Advert, error) }
AdvertServiceClient is the client API for AdvertService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdvertServiceClient ¶
func NewAdvertServiceClient(cc grpc.ClientConnInterface) AdvertServiceClient
type AdvertServiceServer ¶
type AdvertServiceServer interface { Create(context.Context, *Advert) (*Advert, error) Read(context.Context, *Filter) (*Advert, error) ReadAll(*empty.Empty, AdvertService_ReadAllServer) error Update(context.Context, *Advert) (*Advert, error) Delete(context.Context, *Advert) (*Advert, error) }
AdvertServiceServer is the server API for AdvertService service.
type AdvertService_ReadAllClient ¶
type AdvertService_ReadAllClient interface { Recv() (*Advert, error) grpc.ClientStream }
type AdvertService_ReadAllServer ¶
type AdvertService_ReadAllServer interface { Send(*Advert) error grpc.ServerStream }
type Filter ¶
type Filter struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Filter) Descriptor
deprecated
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type UnimplementedAdvertServiceServer ¶
type UnimplementedAdvertServiceServer struct { }
UnimplementedAdvertServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAdvertServiceServer) ReadAll ¶
func (*UnimplementedAdvertServiceServer) ReadAll(*empty.Empty, AdvertService_ReadAllServer) error
Click to show internal directories.
Click to hide internal directories.