Documentation
¶
Index ¶
- type Client
- type Gateway
- func (g *Gateway) NewError(code codes.Code, err error) error
- func (g *Gateway) NewException(code codes.Code, exception exc.Exception) error
- func (g *Gateway) NewNotfoundError(err error) error
- func (g *Gateway) NewServerError(err error) error
- func (g *Gateway) NewServerException(exception exc.Exception) error
- func (g *Gateway) NewValidationError(err error) error
- func (g *Gateway) Status(ctx context.Context, code int)
- type Handler
- type Handlers
- type Register
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.3.4
type Client struct {
// contains filtered or unexported fields
}
Client gRPC客户端封装
func (*Client) Connection ¶ added in v0.3.4
func (c *Client) Connection(name string) *grpc.ClientConn
type Gateway ¶ added in v0.4.3
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶ added in v0.4.3
func (*Gateway) NewException ¶ added in v0.4.5
func (*Gateway) NewNotfoundError ¶ added in v0.4.6
func (*Gateway) NewServerError ¶ added in v0.4.5
func (*Gateway) NewServerException ¶ added in v0.4.5
func (*Gateway) NewValidationError ¶ added in v0.4.5
Source Files
¶
Click to show internal directories.
Click to hide internal directories.