Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDataLoader ¶
InitDataLoader is an outer wrapper of the DataLoader constructor that is used in `command.go` init(). Not testable.
func InitServeCmd ¶
func NewDataLoader ¶
func NewDataLoader( rootCmd *cobra.Command, cfg config.Config, logger *logger.Logger, fgaClient openfgav1.OpenFGAServiceClient, fgaStore fgastore.FGAStoreHelper, database db.DataLoader, )
NewDataLoader is an inner wrapper of the DataLoader constructor which accepts all dependencies as arguments. Testable.
Types ¶
type DataLoader ¶
type DataLoader struct {
Database db.DataLoader
// contains filtered or unexported fields
}
func (*DataLoader) SetDataLoadCmd ¶
func (d *DataLoader) SetDataLoadCmd()
SetDataLoadCmd assigns cobra.Command to the DataLoader.dataLoadCmd field. I took it out of the constructor to increase readability.
Click to show internal directories.
Click to hide internal directories.