package
0.0.0-20241117095027-ea831ad319f9
Repository: https://github.com/glauco/proglog.git
Documentation: pkg.go.dev

# Functions

NewGRPCServer creates a new gRPC server instance, registers the LogServer service, and returns it.
NewHttpServer initializes a new HTTP server with endpoints for producing and consuming log records.
NewLog creates and returns a new instance of Log.

# Variables

The error returned when a record at a given offset does not exist in the log.

# Structs

Config contains the dependencies required by the gRPC server.
ConsumeRequest defines the structure for incoming requests to consume (read) a record from the log.
ConsumeResponse defines the structure for responses to consume requests, containing the requested record.
Log represents a thread-safe log that stores a sequence of records.
ProduceRequest defines the structure for incoming requests to produce a new record in the log.
ProduceResponse defines the structure for responses to produce requests, containing the record offset.
Record represents a log record with a value and an offset.

# Interfaces

No description provided by the author
CommitLog is an interface that defines the methods required to interact with a log.