Documentation ¶
Index ¶
- Variables
- func RegisterSkuServer(s grpc.ServiceRegistrar, srv SkuServer)
- type GetSkuReply
- func (*GetSkuReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetSkuReply) GetBrand() string
- func (x *GetSkuReply) GetIMG() string
- func (x *GetSkuReply) GetMetas() string
- func (x *GetSkuReply) GetModel() string
- func (x *GetSkuReply) GetPDF() string
- func (x *GetSkuReply) GetSKU() string
- func (*GetSkuReply) ProtoMessage()
- func (x *GetSkuReply) ProtoReflect() protoreflect.Message
- func (x *GetSkuReply) Reset()
- func (x *GetSkuReply) String() string
- type GetSkuRequest
- func (*GetSkuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSkuRequest) GetBrand() string
- func (x *GetSkuRequest) GetModel() string
- func (*GetSkuRequest) ProtoMessage()
- func (x *GetSkuRequest) ProtoReflect() protoreflect.Message
- func (x *GetSkuRequest) Reset()
- func (x *GetSkuRequest) String() string
- type SkuClient
- type SkuServer
- type UnimplementedSkuServer
- type UnsafeSkuServer
Constants ¶
This section is empty.
Variables ¶
var File_api_sku_v2_sku_proto protoreflect.FileDescriptor
var Sku_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.sku.v2.Sku", HandlerType: (*SkuServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSku", Handler: _Sku_GetSku_Handler, }, { MethodName: "Ping", Handler: _Sku_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/sku/v2/sku.proto", }
Sku_ServiceDesc is the grpc.ServiceDesc for Sku service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSkuServer ¶
func RegisterSkuServer(s grpc.ServiceRegistrar, srv SkuServer)
Types ¶
type GetSkuReply ¶
type GetSkuReply struct { SKU string `protobuf:"bytes,1,opt,name=SKU,proto3" json:"SKU,omitempty"` Model string `protobuf:"bytes,2,opt,name=Model,proto3" json:"Model,omitempty"` Brand string `protobuf:"bytes,3,opt,name=Brand,proto3" json:"Brand,omitempty"` Metas string `protobuf:"bytes,4,opt,name=Metas,proto3" json:"Metas,omitempty"` IMG string `protobuf:"bytes,5,opt,name=IMG,proto3" json:"IMG,omitempty"` PDF string `protobuf:"bytes,6,opt,name=PDF,proto3" json:"PDF,omitempty"` // contains filtered or unexported fields }
func (*GetSkuReply) Descriptor
deprecated
func (*GetSkuReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSkuReply.ProtoReflect.Descriptor instead.
func (*GetSkuReply) GetBrand ¶
func (x *GetSkuReply) GetBrand() string
func (*GetSkuReply) GetIMG ¶
func (x *GetSkuReply) GetIMG() string
func (*GetSkuReply) GetMetas ¶
func (x *GetSkuReply) GetMetas() string
func (*GetSkuReply) GetModel ¶
func (x *GetSkuReply) GetModel() string
func (*GetSkuReply) GetPDF ¶
func (x *GetSkuReply) GetPDF() string
func (*GetSkuReply) GetSKU ¶
func (x *GetSkuReply) GetSKU() string
func (*GetSkuReply) ProtoMessage ¶
func (*GetSkuReply) ProtoMessage()
func (*GetSkuReply) ProtoReflect ¶
func (x *GetSkuReply) ProtoReflect() protoreflect.Message
func (*GetSkuReply) Reset ¶
func (x *GetSkuReply) Reset()
func (*GetSkuReply) String ¶
func (x *GetSkuReply) String() string
type GetSkuRequest ¶
type GetSkuRequest struct { Model string `protobuf:"bytes,1,opt,name=Model,proto3" json:"Model,omitempty"` Brand string `protobuf:"bytes,2,opt,name=Brand,proto3" json:"Brand,omitempty"` // contains filtered or unexported fields }
func (*GetSkuRequest) Descriptor
deprecated
func (*GetSkuRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSkuRequest.ProtoReflect.Descriptor instead.
func (*GetSkuRequest) GetBrand ¶
func (x *GetSkuRequest) GetBrand() string
func (*GetSkuRequest) GetModel ¶
func (x *GetSkuRequest) GetModel() string
func (*GetSkuRequest) ProtoMessage ¶
func (*GetSkuRequest) ProtoMessage()
func (*GetSkuRequest) ProtoReflect ¶
func (x *GetSkuRequest) ProtoReflect() protoreflect.Message
func (*GetSkuRequest) Reset ¶
func (x *GetSkuRequest) Reset()
func (*GetSkuRequest) String ¶
func (x *GetSkuRequest) String() string
type SkuClient ¶
type SkuClient interface { GetSku(ctx context.Context, in *GetSkuRequest, opts ...grpc.CallOption) (*GetSkuReply, error) Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) }
SkuClient is the client API for Sku 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.
func NewSkuClient ¶
func NewSkuClient(cc grpc.ClientConnInterface) SkuClient
type SkuServer ¶
type SkuServer interface { GetSku(context.Context, *GetSkuRequest) (*GetSkuReply, error) Ping(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
SkuServer is the server API for Sku service. All implementations must embed UnimplementedSkuServer for forward compatibility
type UnimplementedSkuServer ¶
type UnimplementedSkuServer struct { }
UnimplementedSkuServer must be embedded to have forward compatible implementations.
func (UnimplementedSkuServer) GetSku ¶
func (UnimplementedSkuServer) GetSku(context.Context, *GetSkuRequest) (*GetSkuReply, error)
type UnsafeSkuServer ¶
type UnsafeSkuServer interface {
// contains filtered or unexported methods
}
UnsafeSkuServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SkuServer will result in compilation errors.