package server

import (
	"context"
)

type LogHandler interface {
	// Push to file to specific target key object storage.
	Push(ctx context.Context, fname string, targetKey string) (err error)
	Close()
}

var _ LogHandler = &NoPushHandler{}

type NoPushHandler struct {
}

func (h *NoPushHandler) Push(ctx context.Context, fname string, targetKey string) (err error) {
	return nil
}

func (h *NoPushHandler) Close() {
}
