Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificate ¶
func GenerateCertificate(host string) (*tls.Certificate, error)
GenerateCertificate generates a certificate for the specified domain
Types ¶
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue represents a thread-safe queue
func (*Queue[T]) Dequeue ¶
Dequeue removes and returns the item at the front of the queue Returns an error if the queue is empty (non-blocking)
func (*Queue[T]) DequeueBlocking ¶
func (q *Queue[T]) DequeueBlocking() T
DequeueBlocking removes and returns the item at the front of the queue Blocks until an item is available
func (*Queue[T]) Enqueue ¶
func (q *Queue[T]) Enqueue(item T)
Enqueue adds an item to the end of the queue
Click to show internal directories.
Click to hide internal directories.