Documentation ¶
Index ¶
- func AuthInjectorTestHandler(userID string) fiber.Handler
- func BuildRequest(method, url, body string) *http.Request
- func ErrorHandler(c *fiber.Ctx, err error, logger *zerolog.Logger, isProduction bool) error
- func Logger() *zerolog.Logger
- func SetupAppFiber(logger zerolog.Logger) *fiber.App
- type UsersClient
- func (c *UsersClient) GetUser(_ context.Context, in *pb.GetUserRequest, _ ...grpc.CallOption) (*pb.User, error)
- func (c *UsersClient) GetUserByEthAddr(_ context.Context, _ *pb.GetUserByEthRequest, _ ...grpc.CallOption) (*pb.User, error)
- func (c *UsersClient) GetUsersByEthereumAddress(_ context.Context, _ *pb.GetUsersByEthereumAddressRequest, ...) (*pb.GetUsersByEthereumAddressResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthInjectorTestHandler ¶
func AuthInjectorTestHandler(userID string) fiber.Handler
AuthInjectorTestHandler injects fake jwt with sub
func BuildRequest ¶
func ErrorHandler ¶
ErrorHandler custom handler to log recovered errors using our logger and return json instead of string
func SetupAppFiber ¶
SetupAppFiber sets up app fiber with defaults for testing, like our production error handler.
Types ¶
type UsersClient ¶
func (*UsersClient) GetUser ¶
func (c *UsersClient) GetUser(_ context.Context, in *pb.GetUserRequest, _ ...grpc.CallOption) (*pb.User, error)
func (*UsersClient) GetUserByEthAddr ¶ added in v0.9.8
func (c *UsersClient) GetUserByEthAddr(_ context.Context, _ *pb.GetUserByEthRequest, _ ...grpc.CallOption) (*pb.User, error)
func (*UsersClient) GetUsersByEthereumAddress ¶ added in v0.10.8
func (c *UsersClient) GetUsersByEthereumAddress(_ context.Context, _ *pb.GetUsersByEthereumAddressRequest, _ ...grpc.CallOption) (*pb.GetUsersByEthereumAddressResponse, error)
Click to show internal directories.
Click to hide internal directories.