grpc

package
v0.0.0-...-c99e9fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) Ping

func (*UnimplementedAuthServer) RefreshToken

func (*UnimplementedAuthServer) Signin

func (*UnimplementedAuthServer) SigninGoogle

func (*UnimplementedAuthServer) Signup

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL