MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / Encode

Method Encode

internal/auditlog/codec/abstract.go:14–14  ·  view source on GitHub ↗

Encode takes messages from the messages channel, encodes them in the desired format, and writes them to storage. When the messages channel is closed it will also close the storage writer.

(messages <-chan message.Message, storage storage.Writer)

Source from the content-addressed store, hash-verified

12 // Encode takes messages from the messages channel, encodes them in the desired format, and writes them to
13 // storage. When the messages channel is closed it will also close the storage writer.
14 Encode(messages <-chan message.Message, storage storage.Writer) error
15 // GetMimeType returns the MIME type of this format
16 GetMimeType() string
17 // GetFileExtension returns the desired file extension for this format

Callers 15

createRequestForURLMethod · 0.95
EncodeMethod · 0.95
sendErrorMethod · 0.95
tokenMethod · 0.95
writeJSONOutputMethod · 0.95
TestLoadSaveFunction · 0.95
TestYAMLSerializationFunction · 0.95
TestJSONSerializationFunction · 0.95
AddKeyMethod · 0.65
writePacketMethod · 0.65
createCAFunction · 0.65

Implementers 3

encoderinternal/auditlog/codec/asciinema/enco
encoderinternal/auditlog/codec/none/encode.go
encoderinternal/auditlog/codec/binary/encode.

Calls

no outgoing calls

Tested by 8

TestLoadSaveFunction · 0.76
TestYAMLSerializationFunction · 0.76
TestJSONSerializationFunction · 0.76
AddKeyMethod · 0.52
createCAFunction · 0.52
createSignedCertFunction · 0.52
testPipelineFunction · 0.52