Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApplicationNotSet = New("application instance is not initialized") CacheFacadeNotSet = New("cache facade is not initialized") ConfigFacadeNotSet = New("config facade is not initialized") ConsoleFacadeNotSet = New("console facade is not initialized, skipping artisan command execution") DBFacadeNotSet = New("db facade is not initialized") JSONParserNotSet = New("JSON parser is not initialized") LogFacadeNotSet = New("log facade is not initialized") OrmFacadeNotSet = New("orm facade is not initialized") ProcessFacadeNotSet = New("process facade is not initialized") QueueFacadeNotSet = New("queue facade is not initialized") RateLimiterFacadeNotSet = New("rate limiter facade is not initialized") ScheduleFacadeNotSet = New("schedule facade is not initialized") StorageFacadeNotSet = New("storage facade is not initialized") InvalidHttpContext = New("invalid http context") RouteFacadeNotSet = New("route facade is not initialized") SessionFacadeNotSet = New("session facade is not initialized") ServiceProviderCycle = New("circular dependency detected between providers: %s") TelemetryFacadeNotSet = New("telemetry facade is not initialized") AuthEmptySecret = New("authentication secret is missing or required") AuthInvalidClaims = New("authentication token contains invalid claims") AuthInvalidKey = New("authentication key is invalid") AuthInvalidToken = New("authentication token is invalid") AuthNoPrimaryKeyField = New("no primary key field found in the model, ensure primary key is set, e.g., orm.Model") AuthParseTokenFirst = New("authentication token must be parsed first") AuthRefreshTimeExceeded = New("authentication refresh time limit exceeded") AuthTokenDisabled = New("authentication token has been disabled") AuthTokenExpired = New("authentication token has expired") AuthGuardDriverNotFound = New("driver %s for guard %s was not found") AuthProviderDriverNotFound = New("driver %s for user provider %s was not found") AuthUnsupportedDriverMethod = New("The method was not supported for the driver %s") CacheDriverNotSupported = New("invalid driver: %s, only support memory, custom") CacheForeverFailed = New("cache forever is failed") CacheMemoryDriverNotSupportDocker = New("memory driver doesn't support docker") CacheMemoryInvalidIntValueType = New("value type of %s is not *atomic.Int64 or *int64 or *atomic.Int32 or *int32") CacheStoreContractNotFulfilled = New("%s doesn't implement contracts/cache/store") CommandEmptyPackageName = New("the package name cannot be empty") ConsoleProvidersNotArray = New("the app.providers configuration is not of type []foundation.ServiceProvider, skipping registering service providers") ConsoleCommandRegisterFailed = New("failed to register command '%s': %v") ConsoleCommandRequiredArgumentWrongOrder = New("required argument '%s' should be placed before any not-required arguments") ConsoleCommandArgumentUnknownType = New("unknown type of console command argument %T, with value %+v") ConsoleDropAllTablesFailed = New("drop all tables failed: %v") ConsoleDropAllTypesFailed = New("drop all types failed: %v") ConsoleDropAllViewsFailed = New("drop all views failed: %v") ConsoleEmptyDatabaseConfig = New("please fill database config first") ConsoleEmptyFieldValue = New("the %s name cannot be empty") ConsoleFileAlreadyExists = New("the %s already exists. Use the --force or -f flag to overwrite") ConsoleFailedToConfirm = New("failed to confirm the action: %v") ConsolePruneFailed = New("prune failed: %v") ConsoleRunInProduction = New("please use the --force option if you want to run the command in production") CryptAppKeyNotSet = New("APP_KEY is required in artisan environment") CryptInvalidAppKeyLength = New("invalid APP_KEY length: %d bytes") CryptMissingIVKey = New("decrypt payload error: missing iv key") CryptMissingValueKey = New("decrypt payload error: missing value key") DatabaseConfigNotFound = New("not found database configuration") DatabaseCountDistinctWithoutColumns = New("cannot use Count with Distinct without specifying columns") DatabaseTableIsRequired = New("table is required") DatabaseForceIsRequiredInProduction = New("application in production use --force to run this command") DatabaseSeederNotFound = New("not found %s seeder") DatabaseSeederRegisterFailed = New("seeder register failed: %v") DatabaseFailToRunSeeder = New("fail to run seeder: %v") DatabaseUnsupportedType = New("unsupported type: %s, expected %s") DatabaseInvalidArgumentNumber = New("invalid argument number: %s, expected %s") DatabaseTransactionNotStarted = New("transaction not started") DatabaseFailedToGetSql = New("failed to get sql: %v") DatabaseDataIsEmpty = New("data can't be empty") DockerUnknownContainerType = New("unknown container type") DockerInsufficientDatabaseContainers = New("the number of database container is not enough, expect: %d, got: %d") DockerDatabaseContainerCountZero = New("the number of database container must be greater than 0") DockerMissingContainerId = New("no container id return when creating %s docker") EventListenerNotBind = New("event %v doesn't bind listeners") FilesystemDefaultDiskNotSet = New("please set default disk") FilesystemDeleteDirectory = New("can't delete directory, please use DeleteDirectory") FilesystemDriverNotSupported = New("invalid driver: %s, only support local, custom") FilesystemFileNotExist = New("file doesn't exist") FilesystemInvalidCustomDriver = New("init %s disk fail: via must be implement filesystem.Driver or func() (filesystem.Driver, error)") FileAlreadyExists = New("file %s already exists") FileNotExist = New("file %s does not exist") GrpcEmptyClientHost = New("client's host can't be empty") GrpcEmptyClientPort = New("client's port can't be empty") GrpcEmptyServerHost = New("host can't be empty") GrpcEmptyServerPort = New("port can't be empty") GrpcInvalidInterceptorsType = New("the type of clients.%s.interceptors must be []string") HttpClientConnectionNotFound = New("connection [%s] is not configured").SetModule(ModuleHttp) HttpClientDefaultNotSet = New("default client is not configured").SetModule(ModuleHttp) HttpClientResponseAlreadyStreamed = New("response body has already been streamed").SetModule(ModuleHttp) HttpClientResponseIsNil = New("response is nil").SetModule(ModuleHttp) HttpClientConfigNotSet = New("http client config is nil").SetModule(ModuleHttp) HttpRateLimitFailedToTakeToken = New("failed to take token") HttpRateLimitFailedToCheckThrottle = New("failed to check throttle: %s") HttpClientHandlerReturnedNil = New("mock handler returned a nil response").SetModule(ModuleHttp) HttpClientStrayRequest = New("stray request: no mock defined for [%s] %s").SetModule(ModuleHttp) LangFileNotExist = New("translation file does not exist") LangNoLoaderAvailable = New("no translation loader available") LogChannelNotFound = New("log channel %s not found") LogChannelUnimplemented = New("log channel %s doesn't implement contracts/log/logger").SetModule(ModuleLog) LogDriverCircularReference = New("%s driver can't include self channel").SetModule(ModuleLog) LogDriverNotSupported = New("invalid driver: %s, only support stack, single, daily, custom").SetModule(ModuleLog) LogEmptyLogFilePath = New("empty log file path").SetModule(ModuleLog) LogFormatterNotSupported = New("invalid formatter: %s, only support text, json").SetModule(ModuleLog) MailTemplateParseFailed = New("failed to parse template %s: %w").SetModule(ModuleMail) MailTemplateExecutionFailed = New("failed to execute template %s: %w").SetModule(ModuleMail) MailTemplateEngineNotSupported = New("template engine driver not supported: %s").SetModule(ModuleMail) MailTemplateEngineViaRequired = New("custom template engine '%s' must specify 'via' factory function").SetModule(ModuleMail) MailTemplateEngineViaInvalid = New("invalid via type for template engine '%s'").SetModule(ModuleMail) MailTemplateEngineFactoryFailed = New("factory for template engine '%s' failed: %w").SetModule(ModuleMail) MiddlewareRegisterFailed = New("failed to register middleware '%s': %v") MigrationCreateFailed = New("create migration failed: %v") MigrationFreshFailed = New("migration fresh failed: %v") MigrationGetStatusFailed = New("get migration status failed: %v") MigrationMigrateFailed = New("migrate failed: %v") MigrationNameIsRequired = New("migration name cannot be empty") MigrationRefreshFailed = New("migration refresh failed: %v") MigrationRegisterFailed = New("migration register failed: %v") MigrationResetFailed = New("migration reset failed: %v") MigrationRollbackFailed = New("migration rollback failed: %v") OrmDriverNotSupported = New("invalid driver: %s, only support mysql, postgres, sqlite and sqlserver") OrmFailedToGenerateDNS = New("failed to generate DSN, please check the database configuration") OrmFactoryMissingAttributes = New("failed to get raw attributes") OrmFactoryMissingMethod = New("%s does not find factory method") OrmInitConnection = New("init %s connection error: %v") OrmMissingWhereClause = New("WHERE conditions required") OrmNoDialectorsFound = New("no dialectors found") OrmQueryAssociationsConflict = New("cannot set orm.Associations and other fields at the same time") OrmQueryConditionRequired = New("query condition is required") OrmQueryEmptyId = New("id can't be empty") OrmQueryEmptyRelation = New("relation can't be empty") OrmQueryInvalidModel = New("invalid model %s") OrmQueryInvalidParameter = New("parameter error, please check the document") OrmQueryModelNotPointer = New("model must be pointer") OrmQuerySelectAndOmitsConflict = New("cannot set Select and Omits at the same time") OrmRecordNotFound = New("record not found") OrmDeletedAtColumnNotFound = New("deleted at column not found") OrmJsonContainsInvalidBinding = New("invalid value for JSON contains: %v") OrmJsonColumnUpdateInvalid = New("invalid value for JSON column update: %v") PackageConfigKeyExists = New("config key '%s' already exists,using ReplaceConfig instead if you want to update it") PackageFacadeNotFound = New("facade %s not found") PackageMatchGoNodeFail = New("%d out of %d matchers did not match") PackageModifyGoFileFail = New("modify go file '%s' failed: %v") PackageModuleNameEmpty = New("package module name is empty, please run command with module name") PackageRegistrationDuplicate = New("'%s' had been registered") PackageRegistrationNotFound = New("'%s' not found, cannot insert before it") PackageCommandsFileExists = New("commands.go already exists but WithCommands is not registered in foundation.Setup(). The commands.go file should only be created when adding WithCommands to Setup()") PackageFiltersFileExists = New("filters.go already exists but WithFilters is not registered in foundation.Setup(). The filters.go file should only be created when adding WithFilters to Setup()") PackageJobsFileExists = New("jobs.go already exists but WithJobs is not registered in foundation.Setup(). The jobs.go file should only be created when adding WithJobs to Setup()") PackageMigrationsFileExists = New("migrations.go already exists but WithMigrations is not registered in foundation.Setup(). The migrations.go file should only be created when adding WithMigrations to Setup()") PackageProvidersFileExists = New("providers.go already exists but WithProviders is not registered in foundation.Setup(). The providers.go file should only be created when adding WithProviders to Setup()") PackageRulesFileExists = New("rules.go already exists but WithRules is not registered in foundation.Setup(). The rules.go file should only be created when adding WithRules to Setup()") PackageSeedersFileExists = New("seeders.go already exists but WithSeeders is not registered in foundation.Setup(). The seeders.go file should only be created when adding WithSeeders to Setup()") PluralizerLanguageNotFound = New("language %s not found").SetModule(ModulePluralizer) PluralizerEmptyLanguageName = New("language name cannot be empty").SetModule(ModulePluralizer) PluralizerNoSubstitutionsGiven = New("no substitutions provided").SetModule(ModulePluralizer) PluralizerNoWordsGiven = New("no words provided").SetModule(ModulePluralizer) ProcessNotStarted = New("process not started").SetModule(ModuleProcess) ProcessUnsupportedSignalType = New("unsupported signal type").SetModule(ModuleProcess) ProcessPipelineEmpty = New("pipeline must have at least one command").SetModule(ModuleProcess) ProcessPipelineStartFailed = New("failed to start pipeline: %v").SetModule(ModuleProcess) ProcessPipeNilConfigurer = New("pipe configurer cannot be nil").SetModule(ModuleProcess) ProcessPoolNilConfigurer = New("pool configurer cannot be nil").SetModule(ModuleProcess) ProcessExitedWithCode = New("process exited with code %d").SetModule(ModuleProcess) ProviderRegisterFailed = New("failed to register provider '%s': %v") QueueDriverFailedToPop = New("failed to pop job from %s queue: %v") QueueDriverInvalid = New("%s doesn't implement contracts/queue/driver") QueueDriverNoJobFound = New("no job found in %s queue") QueueDriverNotSupported = New("unknown queue driver: %s") QueueDriverSyncNotNeedToRun = New("the driver of queue %s is sync, not need to run") QueueDuplicateJobSignature = New("duplicate job signature: %s") QueueEmptyJobSignature = New("job signature can't be empty") QueueFailedJobNotFound = New("Unable to find failed job with ID [%s]") QueueFailedToCallJob = New("failed to call job") QueueFailedToConvertTaskToJson = New("failed to convert task to json: %v, task: %+v") QueueFailedToDeleteFailedJob = New("failed to delete failed job: %+v, err: %v") QueueFailedToDeleteReservedJob = New("failed to delete reserved job: %+v, err: %v") QueueFailedToGetFailedJob = New("failed to get failed job: %+v, err: %v") QueueFailedToInsertJobToDatabase = New("failed to insert job to database: %+v, err: %v") QueueFailedToReserveJob = New("failed to reserve job: %+v, err: %v") QueueFailedToRetryJob = New("failed to retry job: %+v, err: %v") QueueFailedToSaveFailedJob = New("failed to save failed job: %v") QueueInvalidDatabaseConnection = New("invalid database connection: %s") QueueNoRetryableJobsFound = New("no retryable jobs found") QueueJobNotFound = New("job not found: %s") QueueJobRegisterFailed = New("job register failed: %v") QueueJobFailed = New("job failed: %v") QueueProcessingJobs = New("Processing jobs from [%s] connection and [%s] queue") QueuePushingFailedJob = New("Pushing failed queue jobs back onto the queue") QueueNoFailedJobsFound = New("no failed jobs found") RouteDefaultDriverNotSet = New("please set default driver") RouteInvalidDriver = New("init %s route driver fail: route must be implement route.Route or func() (route.Route, error)") SchemaConnectionNotFound = New("connection %s not found") SchemaDriverNotSupported = New("driver %s is not supported") SchemaEmptyReferenceString = New("reference string can't be empty") SchemaErrorReferenceFormat = New("invalid format: too many dots in reference") SchemaFailedToCreateTable = New("failed to create %s table: %v") SchemaFailedToChangeTable = New("failed to change %s table: %v") SchemaFailedToDropTable = New("failed to drop %s table: %v") SchemaFailedToDropColumns = New("failed to drop %s table columns: %v") SchemaFailedToGetTables = New("failed to get %s tables: %v") SchemaFailedToRenameTable = New("failed to rename %s table: %v") SchemaInvalidModel = New("model must be a struct or pointer to struct") SchemaModelNotFound = New("model %s not found in registered models") SchemaTableNotFound = New("table %s not found") SessionDriverAlreadyExists = New("session driver [%s] already exists") SessionDriverExtensionFailed = New("session failed to extend session [%s] driver [%v]") SessionDriverIsNotSet = New("session driver is not set") SessionDriverNotSupported = New("session driver [%s] not supported") SessionDriverRegisterFailed = New("failed to register session drivers: %v") SessionDriverContractNotFulfilled = New("%s doesn't implement contracts/session/driver") TemplateFailedToExecute = New("failed to execute template: %v") TemplateFailedToFormatGoCode = New("failed to format go code: %v") TemplateFailedToParse = New("failed to parse template: %v") TelemetryPropagatorRequired = New("telemetry propagator is required").SetModule(ModuleTelemetry) TelemetryExporterNotFound = New("telemetry exporter not found").SetModule(ModuleTelemetry) TelemetryUnsupportedDriver = New("unsupported telemetry exporter driver: %s").SetModule(ModuleTelemetry) TelemetryUnsupportedPropagator = New("unsupported telemetry propagator: %s").SetModule(ModuleTelemetry) TelemetryZipkinEndpointRequired = New("telemetry zipkin endpoint is required").SetModule(ModuleTelemetry) TelemetryServiceNameRequired = New("telemetry service name is required").SetModule(ModuleTelemetry) TelemetryViaRequired = New("custom driver requires a factory function to be provided in the 'via' field").SetModule(ModuleTelemetry) TelemetryMetricViaTypeMismatch = New("custom metrics driver requires func(context.Context) (sdkmetric.Reader, error), received %s").SetModule(ModuleTelemetry) TelemetryTraceViaTypeMismatch = New("custom traces driver requires func(context.Context) (sdktrace.SpanExporter, error), received %s").SetModule(ModuleTelemetry) TelemetryLogViaTypeMismatch = New("custom logger driver requires func(context.Context) (sdklog.Exporter, error), received %s").SetModule(ModuleTelemetry) TestingImageBuildFailed = New("init %s docker error: %v") TestingImageNoContainerId = New("no container id return when creating %s docker") TestingImageStopFailed = New("stop %s docker error: %v") TestingImageReadyTimeout = New("image %s is not ready after %s") UnknownFileExtension = New("unknown file extension") ValidationDataInvalidType = New("data must be map[string]any or map[string][]string or struct") ValidationDuplicateFilter = New("duplicate filter name: %s") ValidationDuplicateRule = New("duplicate rule name: %s") ValidationEmptyData = New("data can't be empty") ValidationEmptyRules = New("rules can't be empty") ValidationFilterRegisterFailed = New("filter register failed: %v") ValidationRuleRegisterFailed = New("rule register failed: %v") )
View Source
var ( ModuleAuth = "auth" ModuleCache = "cache" ModuleConsole = "console" ModuleCrypt = "crypt" ModuleDB = "db" ModuleEvent = "event" ModuleFacade = "facade" ModuleFilesystem = "filesystem" ModuleGrpc = "grpc" ModuleHash = "hash" ModuleHttp = "http" ModuleLang = "lang" ModuleLog = "log" ModuleMail = "mail" ModuleMigration = "migration" ModuleOrm = "orm" ModulePackages = "packages" ModulePluralizer = "pluralizer" ModuleProcess = "process" ModuleQueue = "queue" ModuleRoute = "route" ModuleSchema = "schema" ModuleSchedule = "schedule" ModuleSession = "session" ModuleTelemetry = "telemetry" ModuleTesting = "testing" )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.