Documentation
¶
Index ¶
- func AuthMiddlewareSelector(ctx context.Context, callMeta interceptors.CallMeta) bool
- func NewConnectAuthInterceptor(publicKey ed25519.PublicKey) connect.UnaryInterceptorFunc
- func NewConnectValidationInterceptor(v protovalidate.Validator) connect.UnaryInterceptorFunc
- func NewGrpcAuthInterceptor(jwtSecret ed25519.PublicKey) grpc.UnaryServerInterceptor
- func NewGrpcServer(server *Server) *grpc.Server
- func NewGrpcValidationInterceptor(v protovalidate.Validator) grpc.UnaryServerInterceptor
- func ParseHeaderJwt(authString string, claims jwt.Claims, jwtSecret ed25519.PublicKey, ...) (interface{}, error)
- type AuthClaims
- type Server
- func (s *Server) BatchMarkWithdraws(ctx context.Context, connectReq *connect.Request[pb.BatchMarkWithdrawsRequest]) (*connect.Response[pb.BatchMarkWithdrawsResponse], error)
- func (s *Server) BatchProcessWithdraws(ctx context.Context, ...) (*connect.Response[pb.BatchProcessWithdrawsResponse], error)
- func (s *Server) BuyToken(ctx context.Context, connectReq *connect.Request[pb.BuyTokenRequest]) (*connect.Response[pb.BuyTokenResponse], error)
- func (s *Server) CreateWithdraw(ctx context.Context, connectReq *connect.Request[pb.CreateWithdrawRequest]) (*connect.Response[pb.CreateWithdrawResponse], error)
- func (s *Server) Deposit(ctx context.Context, connectReq *connect.Request[pb.DepositRequest]) (*connect.Response[pb.DepositResponse], error)
- func (s *Server) GetChallenge(ctx context.Context, connectReq *connect.Request[pb.GetChallengeRequest]) (*connect.Response[pb.GetChallengeResponse], error)
- func (s *Server) GetConfig() *config.Config
- func (s *Server) GetRedisClient() *redis.Client
- func (s *Server) ListPaymentMethods(ctx context.Context, req *connect.Request[pb.ListPaymentMethodsRequest]) (*connect.Response[pb.ListPaymentMethodsResponse], error)
- func (s *Server) Login(ctx context.Context, connectReq *connect.Request[pb.LoginRequest]) (*connect.Response[pb.LoginResponse], error)
- func (s *Server) Ping(ctx context.Context, _ *connect.Request[pb.PingRequest]) (*connect.Response[pb.PingResponse], error)
- func (s *Server) PruneAccounts(ctx context.Context, req *connect.Request[pb.PruneAccountsRequest]) (*connect.Response[pb.PruneAccountsResponse], error)
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddlewareSelector ¶
func AuthMiddlewareSelector(ctx context.Context, callMeta interceptors.CallMeta) bool
func NewConnectAuthInterceptor ¶
func NewConnectAuthInterceptor( publicKey ed25519.PublicKey, ) connect.UnaryInterceptorFunc
func NewConnectValidationInterceptor ¶
func NewConnectValidationInterceptor(v protovalidate.Validator) connect.UnaryInterceptorFunc
func NewGrpcAuthInterceptor ¶
func NewGrpcAuthInterceptor( jwtSecret ed25519.PublicKey, ) grpc.UnaryServerInterceptor
func NewGrpcServer ¶
func NewGrpcValidationInterceptor ¶
func NewGrpcValidationInterceptor(v protovalidate.Validator) grpc.UnaryServerInterceptor
Types ¶
type Server ¶
type Server struct {
pb.ExchangeServiceServer
// contains filtered or unexported fields
}
func (*Server) BatchMarkWithdraws ¶
func (*Server) BatchProcessWithdraws ¶
func (*Server) CreateWithdraw ¶
func (*Server) GetChallenge ¶
func (*Server) GetRedisClient ¶
func (*Server) ListPaymentMethods ¶
func (*Server) PruneAccounts ¶
Click to show internal directories.
Click to hide internal directories.