{"modulePath":"github.com/luispater/anyAIProxyAPI","version":"v1.2.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Functions\n\n```go\nfunc GenerateCertificate(host string) (*tls.Certificate, error)\n```\nGenerateCertificate generates a certificate for the specified domain\n\n## Types\n\n```go\ntype Queue[T any] struct {\n\t// contains filtered or unexported fields\n}\n```\nQueue represents a thread-safe queue\n\n```go\nfunc NewQueue[T any]() *Queue[T]\n```\nNewQueue creates a new thread-safe queue\n\n```go\nfunc (q *Queue[T]) Clear()\n```\nClear the queue\n\n```go\nfunc (q *Queue[T]) Dequeue() (T, error)\n```\nDequeue removes and returns the item at the front of the queue Returns an error if the queue is empty (non-blocking)\n\n```go\nfunc (q *Queue[T]) DequeueBlocking() T\n```\nDequeueBlocking removes and returns the item at the front of the queue Blocks until an item is available\n\n```go\nfunc (q *Queue[T]) Enqueue(item T)\n```\nEnqueue adds an item to the end of the queue\n\n```go\nfunc (q *Queue[T]) IsEmpty() bool\n```\nIsEmpty checks if the queue is empty\n\n```go\nfunc (q *Queue[T]) Peek() (T, error)\n```\nPeek returns the item at the front without removing it\n\n```go\nfunc (q *Queue[T]) Size() int\n```\nSize returns the number of items in the queue\n\n","path":"github.com/luispater/anyAIProxyAPI/internal/proxy/utils","name":"utils","synopsis":"","isRedistributable":true}
