- Sort Score
- Num 10 results
- Language All
Results 1831 - 1840 of 3,002 for content (0.06 seconds)
-
src/main/java/org/codelibs/fess/suggest/index/contents/document/DocumentReader.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.suggest.index.contents.document; import java.io.Closeable; import java.util.Map; /** * Interface for reading documents and extracting their contents into a map. * Implementations of this interface should provide the logic for reading * documents and converting them into a key-value structure. *
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Fri Jul 04 14:00:23 GMT 2025 - 1.4K bytes - Click Count (0) -
cmd/lock-rest-server.go
} // RefreshHandler - refresh the current lock func (l *lockRESTServer) RefreshHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) { // Add a timeout similar to what we expect upstream. ctx, cancel := context.WithTimeout(context.Background(), dsync.DefaultTimeouts.RefreshCall) defer cancel() resp := lockRPCRefresh.NewResponse() refreshed, err := l.ll.Refresh(ctx, *args) if err != nil { return l.makeResp(resp, err) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jan 31 19:54:34 GMT 2025 - 6.3K bytes - Click Count (0) -
schema/field_test.go
package schema_test import ( "context" "database/sql" "reflect" "sync" "testing" "time" "gorm.io/gorm" "gorm.io/gorm/schema" "gorm.io/gorm/utils/tests" ) func TestFieldValuerAndSetter(t *testing.T) { var ( userSchema, _ = schema.Parse(&tests.User{}, &sync.Map{}, schema.NamingStrategy{}) user = tests.User{ Model: gorm.Model{ ID: 10, CreatedAt: time.Now(),
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Feb 19 09:02:53 GMT 2022 - 12.7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java
} return new EventSpyRepositoryListener(this, listener); } public void init(EventSpy.Context context) { if (eventSpies.isEmpty()) { return; } for (EventSpy eventSpy : eventSpies) { try { eventSpy.init(context); } catch (Exception | LinkageError e) { logError("initialize", e, eventSpy); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.3K bytes - Click Count (0) -
cmd/metrics-v3-system-memory.go
memAvailableMD = NewGaugeMD(memAvailable, "Available memory on the node") ) // loadMemoryMetrics - `MetricsLoaderFn` for node memory metrics. func loadMemoryMetrics(ctx context.Context, m MetricValues, c *metricsCache) error { memMetrics, err := c.memoryMetrics.Get() if err != nil { metricsLogIf(ctx, err) return err } m.Set(memTotal, float64(memMetrics.Total))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 17 05:10:25 GMT 2024 - 2.2K bytes - Click Count (0) -
internal/lsync/lrwmutex.go
func (lm *LRWMutex) lockLoop(ctx context.Context, id, source string, timeout time.Duration, isWriteLock bool) (locked bool) { r := rand.New(rand.NewSource(time.Now().UnixNano())) retryCtx, cancel := context.WithTimeout(ctx, timeout) defer cancel() for { select { case <-retryCtx.Done(): // Caller context canceled or we timedout, // return false anyways for both situations.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 4.8K bytes - Click Count (0) -
docs/zh/docs/advanced/templates.md
* 在返回模板的*路径操作*中声明 `Request` 参数 * 使用 `templates` 渲染并返回 `TemplateResponse`,传递模板的名称、request 对象以及一个包含多个键值对(用于 Jinja2 模板)的 "context" 字典。 {* ../../docs_src/templates/tutorial001_py310.py hl[4,11,15:18] *} /// note | 注意 在 FastAPI 0.108.0,Starlette 0.29.0 之前,`name` 是第一个参数。 并且,在此之前,`request` 对象是作为 context 的一部分以键值对的形式传递的。 /// /// tip | 提示 通过声明 `response_class=HTMLResponse`,API 文档就能识别响应的对象是 HTML。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3K bytes - Click Count (0) -
internal/http/listener.go
// httpListener is capable to // * listen to multiple addresses // * controls incoming connections only doing HTTP protocol func newHTTPListener(ctx context.Context, serverAddrs []string, opts TCPOptions) (listener *httpListener, listenErrs []error) { listeners := make([]net.Listener, 0, len(serverAddrs)) listenErrs = make([]error, len(serverAddrs)) if opts.Trace == nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.8K bytes - Click Count (0) -
logger/slog_test.go
//go:build go1.21 package logger import ( "bytes" "context" "log/slog" "strings" "testing" "time" ) func TestSlogLogger(t *testing.T) { buf := &bytes.Buffer{} handler := slog.NewTextHandler(buf, &slog.HandlerOptions{AddSource: true}) logger := NewSlogLogger(slog.New(handler), Config{LogLevel: Info}) logger.Trace(context.Background(), time.Now(), func() (string, int64) { return "select count(*) from users", 0
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Oct 30 10:56:26 GMT 2025 - 782 bytes - Click Count (0) -
docs/extensions/s3zip/examples/minio-go/main.go
package main import ( "context" "io" "log" "os" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" ) func main() { s3Client, err := minio.New("minio-server-address:9000", &minio.Options{ Creds: credentials.NewStaticV4("access-key", "secret-key", ""), }) if err != nil { log.Fatalln(err) } var opts minio.GetObjectOptions // Add extract header to request:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Jun 14 18:04:14 GMT 2021 - 694 bytes - Click Count (0)