msi

package
v0.0.0-...-82302bd Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_services_msi_msi_proto protoreflect.FileDescriptor
View Source
var File_services_msi_system_status_proto protoreflect.FileDescriptor
View Source
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

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.

Jump to

Keyboard shortcuts

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