Versions in this module Expand all Collapse all v0 v0.1.0 Jul 15, 2026 Changes in this version + const DevMode + const ProMode + const TestMode + func WithCallTimeout(timeout time.Duration) grpc.CallOption + type ClientMiddlewaresConf struct + Prometheus bool + Timeout bool + Trace bool + type ClientOption func(options *clientOptions) + func WithDialOption(opt grpc.DialOption) ClientOption + func WithNonBlock() ClientOption + func WithStreamClientInterceptor(interceptor grpc.StreamClientInterceptor) ClientOption + func WithTimeout(timeout time.Duration) ClientOption + func WithTransportCredentials(creds credentials.TransportCredentials) ClientOption + func WithUnaryClientInterceptor(interceptor grpc.UnaryClientInterceptor) ClientOption + type MethodTimeoutConf = serverinterceptors.MethodTimeoutConf + type RegisterFn func(*grpc.Server) + type RpcClient struct + func MustNewClient(c RpcClientConf, options ...ClientOption) *RpcClient + func NewClient(c RpcClientConf, options ...ClientOption) (*RpcClient, error) + func NewClientWithTarget(target string, opts ...ClientOption) (*RpcClient, error) + func (rc *RpcClient) Conn() *grpc.ClientConn + type RpcClientConf struct + Endpoints []string + KeepaliveTime time.Duration + Middlewares ClientMiddlewaresConf + NonBlock bool + Target string + Timeout int64 + func (cc RpcClientConf) BuildTarget() (string, error) + type RpcServer struct + func MustNewServer(c RpcServerConf, register RegisterFn) *RpcServer + func NewServer(c RpcServerConf, register RegisterFn) (*RpcServer, error) + func (s *RpcServer) AddOptions(options ...grpc.ServerOption) + func (s *RpcServer) AddStreamInterceptors(interceptors ...grpc.StreamServerInterceptor) + func (s *RpcServer) AddUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) + func (s *RpcServer) Start() + func (s *RpcServer) Stop() + type RpcServerConf struct + DevServer devserver.Config + Health bool + ListenOn string + Log logx.LogConf + MethodTimeouts []MethodTimeoutConf + Middlewares ServerMiddlewaresConf + Mode string + Name string + Shutdown proc.ShutdownConf + Telemetry trace.Config + Timeout int64 + func (sc RpcServerConf) SetUp() error + func (sc RpcServerConf) Validate() error + type ServerMiddlewaresConf struct + Prometheus bool + Recover bool + Timeout bool + Trace bool