Documentation ¶
Index ¶
- type ConnRequestRequest
- type ConnRequestResponse
- type ConnUpsertRequest
- type ConnUpsertResponse
- type DeleteDestinationRequest
- type DeleteDestinationResponse
- type FormError
- type FormState
- type GetDestinationRequest
- type GetDestinationResponse
- type HomeRequest
- type HomeResponse
- type Middleware
- type NewKeyRequest
- type NewKeyResponse
- type Service
- func (s *Service) ConnRequest(ctx context.Context, r *ConnRequestRequest) (*ConnRequestResponse, error)
- func (s *Service) ConnUpsert(ctx context.Context, req *ConnUpsertRequest) (*ConnUpsertResponse, error)
- func (s *Service) DeleteDestination(ctx context.Context, r *DeleteDestinationRequest) (*DeleteDestinationResponse, error)
- func (s *Service) GetDestination(ctx context.Context, r *GetDestinationRequest) (*GetDestinationResponse, error)
- func (s *Service) Home(ctx context.Context, r *HomeRequest) (*HomeResponse, error)
- func (s *Service) NewKey(ctx context.Context, r *NewKeyRequest) (*NewKeyResponse, error)
- func (s *Service) UpdateConnection(ctx context.Context, r *UpdateConnectionRequest) (*ConnUpsertResponse, error)
- func (s *Service) ValidateRequestId(c context.Context, requestId string) (models.ConnectionRequest, error)
- func (s *Service) VerifyRequest(ctx context.Context, r *VerifyRequestRequest) (*VerifyRequestResponse, error)
- type UpdateConnectionRequest
- type UpdateConnectionResponse
- type VerifyRequestRequest
- type VerifyRequestResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnRequestRequest ¶
type ConnRequestRequest struct {
Type string
}
type ConnRequestResponse ¶
type ConnRequestResponse struct {
URL string
}
type ConnUpsertRequest ¶
type ConnUpsertResponse ¶
type DeleteDestinationRequest ¶
type DeleteDestinationRequest struct {
DestID uint
}
type DeleteDestinationResponse ¶
type DeleteDestinationResponse struct{}
type FormError ¶
type FormError struct { Title string Message string State *ConnUpsertResponse }
func NewFormError ¶
func NewFormError(title, message string, res *ConnUpsertResponse) FormError
type GetDestinationRequest ¶
type GetDestinationRequest struct {
DestID uint
}
type GetDestinationResponse ¶
type HomeRequest ¶
type HomeRequest struct { }
type HomeResponse ¶
type HomeResponse struct {
Dests []config.Destination
}
type NewKeyRequest ¶
type NewKeyRequest struct {
DestID uint
}
type NewKeyResponse ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( c config.DashboardConfig, storageServices *storage.Services, destManager *destinations.DestinationManager, ) *Service
func (*Service) ConnRequest ¶
func (s *Service) ConnRequest(ctx context.Context, r *ConnRequestRequest) (*ConnRequestResponse, error)
func (*Service) ConnUpsert ¶
func (s *Service) ConnUpsert(ctx context.Context, req *ConnUpsertRequest) (*ConnUpsertResponse, error)
func (*Service) DeleteDestination ¶
func (s *Service) DeleteDestination(ctx context.Context, r *DeleteDestinationRequest) (*DeleteDestinationResponse, error)
func (*Service) GetDestination ¶
func (s *Service) GetDestination(ctx context.Context, r *GetDestinationRequest) (*GetDestinationResponse, error)
func (*Service) Home ¶
func (s *Service) Home(ctx context.Context, r *HomeRequest) (*HomeResponse, error)
func (*Service) NewKey ¶
func (s *Service) NewKey(ctx context.Context, r *NewKeyRequest) (*NewKeyResponse, error)
func (*Service) UpdateConnection ¶
func (s *Service) UpdateConnection(ctx context.Context, r *UpdateConnectionRequest) (*ConnUpsertResponse, error)
func (*Service) ValidateRequestId ¶
func (*Service) VerifyRequest ¶
func (s *Service) VerifyRequest(ctx context.Context, r *VerifyRequestRequest) (*VerifyRequestResponse, error)
type UpdateConnectionRequest ¶
type UpdateConnectionRequest struct { RequestID string Req *ConnUpsertRequest }
type UpdateConnectionResponse ¶
type UpdateConnectionResponse struct { }
type VerifyRequestRequest ¶
type VerifyRequestRequest struct {
RequestID string
}
type VerifyRequestResponse ¶
type VerifyRequestResponse struct { }
Click to show internal directories.
Click to hide internal directories.