Documentation ¶
Index ¶
- Variables
- func RegisterMsiServer(s grpc.ServiceRegistrar, srv MsiServer)
- type GetProductsRequest
- type GetProductsResponse
- func (*GetProductsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductsResponse) GetProducts() []*msi.Product
- func (*GetProductsResponse) ProtoMessage()
- func (x *GetProductsResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductsResponse) Reset()
- func (x *GetProductsResponse) String() string
- type MsiClient
- type MsiServer
- type UnimplementedMsiServer
- type UnsafeMsiServer
Constants ¶
This section is empty.
Variables ¶
var File_services_msi_msi_proto protoreflect.FileDescriptor
var File_services_msi_system_status_proto protoreflect.FileDescriptor
var Msi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.msi.Msi", HandlerType: (*MsiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProducts", Handler: _Msi_GetProducts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/msi/msi.proto", }
Msi_ServiceDesc is the grpc.ServiceDesc for Msi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsiServer ¶
func RegisterMsiServer(s grpc.ServiceRegistrar, srv MsiServer)
Types ¶
type GetProductsRequest ¶
type GetProductsRequest struct {
// contains filtered or unexported fields
}
func (*GetProductsRequest) Descriptor
deprecated
func (*GetProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductsRequest.ProtoReflect.Descriptor instead.
func (*GetProductsRequest) ProtoMessage ¶
func (*GetProductsRequest) ProtoMessage()
func (*GetProductsRequest) ProtoReflect ¶
func (x *GetProductsRequest) ProtoReflect() protoreflect.Message
func (*GetProductsRequest) Reset ¶
func (x *GetProductsRequest) Reset()
func (*GetProductsRequest) String ¶
func (x *GetProductsRequest) String() string
type GetProductsResponse ¶
type GetProductsResponse struct { Products []*msi.Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*GetProductsResponse) Descriptor
deprecated
func (*GetProductsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProductsResponse.ProtoReflect.Descriptor instead.
func (*GetProductsResponse) GetProducts ¶
func (x *GetProductsResponse) GetProducts() []*msi.Product
func (*GetProductsResponse) ProtoMessage ¶
func (*GetProductsResponse) ProtoMessage()
func (*GetProductsResponse) ProtoReflect ¶
func (x *GetProductsResponse) ProtoReflect() protoreflect.Message
func (*GetProductsResponse) Reset ¶
func (x *GetProductsResponse) Reset()
func (*GetProductsResponse) String ¶
func (x *GetProductsResponse) String() string
type MsiClient ¶
type MsiClient interface {
GetProducts(ctx context.Context, in *GetProductsRequest, opts ...grpc.CallOption) (*GetProductsResponse, error)
}
MsiClient is the client API for Msi 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 NewMsiClient ¶
func NewMsiClient(cc grpc.ClientConnInterface) MsiClient
type MsiServer ¶
type MsiServer interface { GetProducts(context.Context, *GetProductsRequest) (*GetProductsResponse, error) // contains filtered or unexported methods }
MsiServer is the server API for Msi service. All implementations must embed UnimplementedMsiServer for forward compatibility
type UnimplementedMsiServer ¶
type UnimplementedMsiServer struct { }
UnimplementedMsiServer must be embedded to have forward compatible implementations.
func (UnimplementedMsiServer) GetProducts ¶
func (UnimplementedMsiServer) GetProducts(context.Context, *GetProductsRequest) (*GetProductsResponse, error)
type UnsafeMsiServer ¶
type UnsafeMsiServer interface {
// contains filtered or unexported methods
}
UnsafeMsiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsiServer will result in compilation errors.