writer

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CasWriter

type CasWriter struct {
	// contains filtered or unexported fields
}

CasWriter is CAS writer.

func New

func New(writer casWriter, hint string) *CasWriter

New creates cas writer.

func (*CasWriter) Write

func (cw *CasWriter) Write(content []byte) (string, string, error)

Write writes the given content to CAS. returns cid (which represents the address of the content within this CAS) plus hint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL