internal

package
v0.0.0-...-a779712 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GRPCMaxMessageBytes = 64 << 20

Variables

View Source
var ErrIntOverflow = errors.New("int64 に変換できません(オーバーフロー)")

Functions

func GRPCDialOptions

func GRPCDialOptions() []grpc.DialOption

GRPCDialOptions returns the common insecure dial options used by node-local and node-to-node traffic.

func GRPCServerOptions

func GRPCServerOptions() []grpc.ServerOption

GRPCServerOptions keeps Raft replication and the public/internal APIs aligned on the same message-size budget.

func Uint64ToInt

func Uint64ToInt(u uint64) (int, error)

func WithStacks

func WithStacks[T any](t T, err error) (T, error)

Types

type CleanupStack

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

CleanupStack stores cleanup callbacks and runs them in LIFO order.

func (*CleanupStack) Add

func (c *CleanupStack) Add(fn func())

Add registers a cleanup callback.

func (*CleanupStack) Release

func (c *CleanupStack) Release()

Release discards all registered callbacks.

func (*CleanupStack) Run

func (c *CleanupStack) Run()

Run executes registered callbacks in reverse registration order.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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