Documentation ¶
Index ¶
- func Err(err error, comments ...string) error
- func NewGrpcClientFx[T ClientOptions, M GrpcClient2]() fx.Option
- func NewGrpcServerFx[T ServerOptions]() fx.Option
- func NewInsecureClient(grpcUrl string) (*grpc.ClientConn, error)
- func NewRequestLogger(logr *slog.Logger, comment string) *logger
- func ParseErr(err error) *errors.Error
- type Client
- type ClientOptions
- type GrpcClient2
- type GrpcConnectOpts
- type Server
- type ServerOptions
- type ServerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGrpcClientFx ¶
func NewGrpcClientFx[T ClientOptions, M GrpcClient2]() fx.Option
func NewGrpcServerFx ¶
func NewGrpcServerFx[T ServerOptions]() fx.Option
func NewInsecureClient ¶
func NewInsecureClient(grpcUrl string) (*grpc.ClientConn, error)
func NewRequestLogger ¶
Types ¶
type Client ¶
type Client interface { grpc.ClientConnInterface Close() error }
func NewGrpcClient ¶
func NewGrpcClientV2 ¶
func NewGrpcClientV2(serverAddr string, opts GrpcConnectOpts) (Client, error)
type ClientOptions ¶
type ClientOptions interface {
GetGRPCServerURL() string
}
type GrpcClient2 ¶
type GrpcClient2 interface { ~*grpc.ClientConn }
type GrpcConnectOpts ¶
type Server ¶
type Server interface { grpc.ServiceRegistrar Listen(addr string) error Stop() }
func NewGrpcServer ¶
func NewGrpcServer(opts ServerOpts) (Server, error)
type ServerOptions ¶
type ServerOptions interface {
GetGRPCPort() uint16
}
type ServerOpts ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.