Documentation
¶
Index ¶
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthClient
- type AuthServer
- type UnimplementedAuthServer
- func (*UnimplementedAuthServer) Ping(ctx context.Context, req *pbtypes.Empty) (*pbtypes.Empty, error)
- func (*UnimplementedAuthServer) RefreshToken(ctx context.Context, req *pbtypes.String) (*dto.SigninResp, error)
- func (*UnimplementedAuthServer) Signin(ctx context.Context, req *dto.SigninReq) (*dto.SigninResp, error)
- func (*UnimplementedAuthServer) SigninGoogle(ctx context.Context, req *pbtypes.String) (*dto.SigninResp, error)
- func (*UnimplementedAuthServer) Signup(ctx context.Context, req *dto.SignupReq) (*pbtypes.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { // Signup Signup(ctx context.Context, in *dto.SignupReq, opts ...grpc.CallOption) (*pbtypes.Empty, error) // Signin Signin(ctx context.Context, in *dto.SigninReq, opts ...grpc.CallOption) (*dto.SigninResp, error) // Signin Google SigninGoogle(ctx context.Context, in *pbtypes.String, opts ...grpc.CallOption) (*dto.SigninResp, error) // Refresh token RefreshToken(ctx context.Context, in *pbtypes.String, opts ...grpc.CallOption) (*dto.SigninResp, error) // Ping Ping(ctx context.Context, in *pbtypes.Empty, opts ...grpc.CallOption) (*pbtypes.Empty, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthServer ¶
type AuthServer interface { // Signup Signup(context.Context, *dto.SignupReq) (*pbtypes.Empty, error) // Signin Signin(context.Context, *dto.SigninReq) (*dto.SigninResp, error) // Signin Google SigninGoogle(context.Context, *pbtypes.String) (*dto.SigninResp, error) // Refresh token RefreshToken(context.Context, *pbtypes.String) (*dto.SigninResp, error) // Ping Ping(context.Context, *pbtypes.Empty) (*pbtypes.Empty, error) }
AuthServer is the server API for Auth service.
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) RefreshToken ¶
func (*UnimplementedAuthServer) RefreshToken(ctx context.Context, req *pbtypes.String) (*dto.SigninResp, error)
func (*UnimplementedAuthServer) Signin ¶
func (*UnimplementedAuthServer) Signin(ctx context.Context, req *dto.SigninReq) (*dto.SigninResp, error)
func (*UnimplementedAuthServer) SigninGoogle ¶
func (*UnimplementedAuthServer) SigninGoogle(ctx context.Context, req *pbtypes.String) (*dto.SigninResp, error)
Click to show internal directories.
Click to hide internal directories.