github.com/kaydxh/golang@v0.0.131/pkg/file-cleanup/disk/disk_cleaner.proto (about)

     1  syntax = "proto3";
     2  
     3  package go.pkg.filecleanup.disk;
     4  import "google/protobuf/duration.proto";
     5  
     6  option go_package = "github.com/kaydxh/go.pkg.filecleanup.disk;disk";
     7  
     8  message DiskCleaner {
     9    bool enabled = 1;
    10    // disk usage >= disk_usage, start to clean file, 0 means nerver clean, range
    11    // 0-100
    12    float disk_usage = 2;
    13    // clearn paths
    14    repeated string paths = 3;
    15    // ext
    16    repeated string exts = 4;
    17    google.protobuf.Duration check_interval = 5;
    18    google.protobuf.Duration base_expired = 6;
    19    google.protobuf.Duration min_expired = 7;
    20  }