Skip to main content Link Search Menu Expand Document (external link)

Etag overview

Added in v1.0.0


Table of contents


convertions

toString

Signature

export declare const toString: (self: Etag) => string

Added in v1.0.0

layers

layer

Signature

export declare const layer: Layer<Generator>

Added in v1.0.0

layerWeak

Signature

export declare const layerWeak: Layer<Generator>

Added in v1.0.0

models

Etag (type alias)

Signature

export type Etag = Weak | Strong

Added in v1.0.0

Generator (interface)

Signature

export interface Generator {
  readonly [GeneratorTypeId]: GeneratorTypeId
  readonly fromFileInfo: (info: FileSystem.File.Info) => Effect.Effect<Etag>
  readonly fromFileWeb: (file: Body.HttpBody.FileLike) => Effect.Effect<Etag>
}

Added in v1.0.0

Strong (interface)

Signature

export interface Strong {
  readonly _tag: "Strong"
  readonly value: string
}

Added in v1.0.0

Weak (interface)

Signature

export interface Weak {
  readonly _tag: "Weak"
  readonly value: string
}

Added in v1.0.0

tags

Generator

Signature

export declare const Generator: Context.Tag<Generator, Generator>

Added in v1.0.0

type ids

GeneratorTypeId

Signature

export declare const GeneratorTypeId: typeof GeneratorTypeId

Added in v1.0.0

GeneratorTypeId (type alias)

Signature

export type GeneratorTypeId = typeof GeneratorTypeId

Added in v1.0.0