Documentation ¶
Index ¶
- func CustomHTTPError(ctx context.Context, _ *runtime.ServeMux, marshaler runtime.Marshaler, ...)
- func NewClient(host string) pb.UserClient
- type Option
- type Server
- func (s Server) AuthUser(ctx context.Context, r *pb.AuthUserRequest) (*pb.AuthUserResponse, error)
- func (s Server) Close()
- func (s Server) CreateUser(ctx context.Context, r *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
- func (s Server) HealthCheck(context.Context, *empty.Empty) (*empty.Empty, error)
- func (s Server) ServeGRPC(grpcPort string) error
- func (s Server) ServeHTTP(httpPort, grpcPort string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomHTTPError ¶
func NewClient ¶
func NewClient(host string) pb.UserClient
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements proto/card.proto.
func (Server) AuthUser ¶
func (s Server) AuthUser(ctx context.Context, r *pb.AuthUserRequest) (*pb.AuthUserResponse, error)
func (Server) CreateUser ¶
func (s Server) CreateUser(ctx context.Context, r *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
func (Server) HealthCheck ¶
Click to show internal directories.
Click to hide internal directories.