Documentation ¶
Index ¶
- func AddHTTPRoutes(r *mux.Router, e Endpoints, logger log.Logger)
- type ConfigStore
- type Endpoints
- type Middleware
- type SantaService
- func (svc *SantaService) Preflight(ctx context.Context, machineID string, p santa.PreflightPayload) (*santa.Preflight, error)
- func (svc *SantaService) RuleDownload(ctx context.Context, machineID string) ([]santa.Rule, error)
- func (svc *SantaService) UploadEvent(ctx context.Context, machineID string, events []santa.EventPayload) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigStore ¶
type Endpoints ¶
type Endpoints struct { PreflightEndpoint endpoint.Endpoint RuleDownloadEndpoint endpoint.Endpoint EventUploadEndpoint endpoint.Endpoint }
func MakeServerEndpoints ¶
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
type SantaService ¶
type SantaService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ds ConfigStore, eventDir string, flPersistEvents bool) (*SantaService, error)
func (*SantaService) Preflight ¶
func (svc *SantaService) Preflight(ctx context.Context, machineID string, p santa.PreflightPayload) (*santa.Preflight, error)
func (*SantaService) RuleDownload ¶
func (*SantaService) UploadEvent ¶
func (svc *SantaService) UploadEvent(ctx context.Context, machineID string, events []santa.EventPayload) error
Click to show internal directories.
Click to hide internal directories.