Documentation
¶
Overview ¶
Package audit provides audit log client services for the remote-signer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
List(ctx context.Context, filter *ListFilter) (*ListResponse, error)
}
API defines the audit service interface.
type ListFilter ¶
type ListFilter struct {
EventType string
Severity string
APIKeyID string
SignerAddress string
ChainType string
ChainID string
StartTime *time.Time
EndTime *time.Time
Limit int
Cursor *string
CursorID *string
}
ListFilter contains filter options for listing audit records.
type ListResponse ¶
type ListResponse struct {
Records []Record `json:"records"`
Total int `json:"total"`
NextCursor *string `json:"next_cursor,omitempty"`
NextCursorID *string `json:"next_cursor_id,omitempty"`
HasMore bool `json:"has_more"`
}
ListResponse represents the response from listing audit records.
type Record ¶
type Record struct {
ID string `json:"id"`
EventType string `json:"event_type"`
Severity string `json:"severity"`
Timestamp time.Time `json:"timestamp"`
APIKeyID string `json:"api_key_id,omitempty"`
ActorAddress string `json:"actor_address,omitempty"`
SignRequestID *string `json:"sign_request_id,omitempty"`
SignerAddress *string `json:"signer_address,omitempty"`
ChainType *string `json:"chain_type,omitempty"`
ChainID *string `json:"chain_id,omitempty"`
RuleID *string `json:"rule_id,omitempty"`
Details json.RawMessage `json:"details,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
RequestMethod string `json:"request_method,omitempty"`
RequestPath string `json:"request_path,omitempty"`
}
Record represents an audit log entry.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles audit log operations.
func NewService ¶
NewService creates a new audit service.
func (*Service) List ¶
func (s *Service) List(ctx context.Context, filter *ListFilter) (*ListResponse, error)
List lists audit records with optional filters.
Click to show internal directories.
Click to hide internal directories.