pb

package
v0.0.0-...-a0bd54b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Advert.ProtoReflect.Descriptor instead.

func (*Advert) GetActivatedAt

func (x *Advert) GetActivatedAt() *timestamp.Timestamp

func (*Advert) GetCategoryId

func (x *Advert) GetCategoryId() uint32

func (*Advert) GetCreatedAt

func (x *Advert) GetCreatedAt() *timestamp.Timestamp

func (*Advert) GetDescription

func (x *Advert) GetDescription() string

func (*Advert) GetId

func (x *Advert) GetId() uint64

func (*Advert) GetPrice

func (x *Advert) GetPrice() float32

func (*Advert) GetStatus

func (x *Advert) GetStatus() uint32

func (*Advert) GetTitle

func (x *Advert) GetTitle() string

func (*Advert) GetUpdatedAt

func (x *Advert) GetUpdatedAt() *timestamp.Timestamp

func (*Advert) GetUserId

func (x *Advert) GetUserId() uint64

func (*Advert) ProtoMessage

func (*Advert) ProtoMessage()

func (*Advert) ProtoReflect

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

func (*Advert) Reset

func (x *Advert) Reset()

func (*Advert) String

func (x *Advert) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetId

func (x *Filter) GetId() uint64

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type UnimplementedAdvertServiceServer

type UnimplementedAdvertServiceServer struct {
}

UnimplementedAdvertServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAdvertServiceServer) Create

func (*UnimplementedAdvertServiceServer) Delete

func (*UnimplementedAdvertServiceServer) Read

func (*UnimplementedAdvertServiceServer) ReadAll

func (*UnimplementedAdvertServiceServer) Update

Jump to

Keyboard shortcuts

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