Documentation ¶
Index ¶
- func Dial(ctx context.Context, endpoint string) (conn *grpc.ClientConn, err error)
- func Register(app application.App, registrar grpc.ServiceRegistrar) error
- func RegisterServerTx(container di.Container, registrar grpc.ServiceRegistrar) error
- type ClientConn
- type ProductRepository
- type StoreRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(app application.App, registrar grpc.ServiceRegistrar) error
func RegisterServerTx ¶
func RegisterServerTx(container di.Container, registrar grpc.ServiceRegistrar) error
Types ¶
type ClientConn ¶
type ClientConn = grpc.ClientConn
type ProductRepository ¶
type ProductRepository struct {
// contains filtered or unexported fields
}
func NewProductRepository ¶
func NewProductRepository(conn *grpc.ClientConn) ProductRepository
type StoreRepository ¶
type StoreRepository struct {
// contains filtered or unexported fields
}
func NewStoreRepository ¶
func NewStoreRepository(conn *grpc.ClientConn) StoreRepository
Click to show internal directories.
Click to hide internal directories.