Movatterモバイル変換


[0]ホーム

URL:


binarylog

package
v1.77.0Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License:Apache-2.0Imports:4Imported by:5

Details

Repository

github.com/grpc/grpc-go

Links

Documentation

Overview

Package binarylog implementation binary logging as defined inhttps://github.com/grpc/proposal/blob/master/A16-binary-logging.md.

Notice: All APIs in this package are experimental.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcSetSink

func SetSink(sSink)

SetSink sets the destination for the binary log entries.

NOTE: this function must only be called during initialization time (i.e. inan init() function), and is not thread-safe.

Types

typeSink

type Sink interface {// Write marshals the log entry and writes it to the destination. The format// is not specified, but should have sufficient information to rebuild the// entry. Some options are: proto bytes, or proto json.//// Note this function needs to be thread-safe.Write(*binlogpb.GrpcLogEntry)error// Close closes this sink and cleans up resources (e.g. the flushing// goroutine).Close()error}

Sink represents the destination for the binary log entries.

funcNewTempFileSink

func NewTempFileSink() (Sink,error)

NewTempFileSink creates a temp file and returns a Sink that writes to thisfile.

Source Files

View all Source files

Directories

PathSynopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp