{"modulePath":"code.cloudfoundry.org/loggregator-release","version":"v74.0.2+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package truncatingbuffer\n\n## Types\n\n```go\ntype BufferContext interface {\n\tEventAllowed(events.Envelope_EventType) bool\n\tDestination() string\n\tOrigin() string\n\tAppID(*events.Envelope) string\n}\n```\n\n```go\ntype DefaultContext struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewDefaultContext(origin string, destination string) *DefaultContext\n```\n\n```go\nfunc (d *DefaultContext) AppID(envelope *events.Envelope) string\n```\n\n```go\nfunc (d *DefaultContext) Destination() string\n```\n\n```go\nfunc (d *DefaultContext) EventAllowed(events.Envelope_EventType) bool\n```\n\n```go\nfunc (d *DefaultContext) Origin() string\n```\n\n```go\ntype LogAllowedContext struct {\n\tDefaultContext\n}\n```\n\n```go\nfunc NewLogAllowedContext(origin string, destination string) *LogAllowedContext\n```\n\n```go\nfunc (l *LogAllowedContext) EventAllowed(event events.Envelope_EventType) bool\n```\n\n```go\ntype SystemContext struct {\n\tDefaultContext\n}\n```\n\n```go\nfunc NewSystemContext(origin string, destination string) *SystemContext\n```\n\n```go\nfunc (s *SystemContext) AppID(*events.Envelope) string\n```\n\n```go\ntype TruncatingBuffer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTruncatingBuffer(inputChannel \u003c-chan *events.Envelope, bufferSize uint, context BufferContext, stopChannel chan struct{}) *TruncatingBuffer\n```\n\n```go\nfunc (r *TruncatingBuffer) GetOutputChannel() \u003c-chan *events.Envelope\n```\n\n```go\nfunc (r *TruncatingBuffer) Run()\n```\n\n","path":"code.cloudfoundry.org/loggregator-release/src/truncatingbuffer","name":"truncatingbuffer","synopsis":"","isRedistributable":true}
