Versions in this module Expand all Collapse all v0 v0.3.5 Feb 20, 2020 Changes in this version + const LogFlagDisable + const LogFlagDisableArgs + const LogFlagDisableInfo + func NewConn(target string, opt ...grpc.DialOption) (*grpc.ClientConn, error) + func WithDialLogFlag(flag int8) grpc.DialOption + func WithLogFlag(flag int8) grpc.CallOption + type Client struct + func DefaultClient() *Client + func NewClient(conf *ClientConfig, opt ...grpc.DialOption) *Client + func (c *Client) Dial(ctx context.Context, target string, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error) + func (c *Client) DialTLS(ctx context.Context, target string, file string, name string, ...) (conn *grpc.ClientConn, err error) + func (c *Client) SetConfig(conf *ClientConfig) (err error) + func (c *Client) Use(handlers ...grpc.UnaryClientInterceptor) *Client + func (c *Client) UseOpt(opts ...grpc.DialOption) *Client + type ClientConfig struct + Breaker *breaker.Config + Clusters []string + Dial xtime.Duration + KeepAliveInterval xtime.Duration + KeepAliveTimeout xtime.Duration + KeepAliveWithoutStream bool + Method map[string]*ClientConfig + NonBlock bool + Subset int + Timeout xtime.Duration + Zone string + type Server struct + func NewServer(conf *ServerConfig, opt ...grpc.ServerOption) (s *Server) + func (s *Server) RegisterValidation(key string, fn validator.Func) error + func (s *Server) Run(addr string) error + func (s *Server) RunUnix(file string) error + func (s *Server) Serve(lis net.Listener) error + func (s *Server) Server() *grpc.Server + func (s *Server) SetConfig(conf *ServerConfig) (err error) + func (s *Server) Shutdown(ctx context.Context) (err error) + func (s *Server) Start() (*Server, error) + func (s *Server) StartWithAddr() (*Server, net.Addr, error) + func (s *Server) Use(handlers ...grpc.UnaryServerInterceptor) *Server + type ServerConfig struct + Addr string + ForceCloseWait xtime.Duration + IdleTimeout xtime.Duration + KeepAliveInterval xtime.Duration + KeepAliveTimeout xtime.Duration + LogFlag int8 + MaxLifeTime xtime.Duration + Network string + Timeout xtime.Duration + type TimeoutCallOption struct + Timeout time.Duration + func WithTimeoutCallOption(timeout time.Duration) *TimeoutCallOption