bizrepos

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

repo

Business Repository

  • 仓库接口

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.0.14

type Handler func(context.Context, *emptypb.Empty) error

type NodeIdBizRepo

type NodeIdBizRepo interface {
	GetConfig() *bo.NodeIDConfig
	GetNodeId(ctx context.Context, param *bo.GetNodeIdParam) (*po.NodeId, error)
	GenerateNextID(serialModel *po.NodeSerial, param *bo.GetNodeIdParam) (*po.NodeId, error)
	RenewalNodeId(ctx context.Context, param *bo.RenewalNodeIdParam) (*bo.RenewalNodeIDReply, error)
	ReleaseNodeId(ctx context.Context, param *bo.ReleaseNodeIdParam) (*po.NodeId, error)
}

type RenewNodeIDEventRepo added in v0.0.14

type RenewNodeIDEventRepo interface {
	Publish(ctx context.Context, param *bo.RenewalNodeIdParam) error
	Consume(ctx context.Context, handler RenewNodeIDHandler) error
	Close(ctx context.Context) error
}

type RenewNodeIDHandler added in v0.0.14

type RenewNodeIDHandler func(ctx context.Context, param *bo.RenewalNodeIdParam) (*bo.RenewalNodeIDReply, error)

type TestingEventRepo added in v0.0.14

type TestingEventRepo interface {
	Publish(ctx context.Context, msg *emptypb.Empty) error
	Consume(ctx context.Context, handler Handler) error
	Close() error
}

Jump to

Keyboard shortcuts

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