github.com/LanceLRQ/deer-common@v0.0.9-0.20210319081233-e8222ac018a8/persistence/struct.go (about)

     1  package persistence
     2  
     3  import (
     4  	"crypto/rsa"
     5  )
     6  
     7  type DigitalSignPEM struct {
     8  	PublicKey     *rsa.PublicKey
     9  	PrivateKey    *rsa.PrivateKey
    10  	PublicKeyRaw  []byte
    11  	PrivateKeyRaw []byte
    12  }
    13  
    14  type CommonPersisOptions struct {
    15  	DigitalSign bool            // 是否启用数字签名
    16  	DigitalPEM  *DigitalSignPEM // PEM 数字证书
    17  	OutFile     string          // 最终输出文件
    18  }
    19  
    20  type JudgeResultPersisOptions struct {
    21  	CommonPersisOptions
    22  	CompressorType   uint8
    23  	SessionDir       string
    24  	SaveAcceptedData bool // 是否保存已经AC的数据
    25  }
    26  
    27  type ProblemPackageOptions struct {
    28  	CommonPersisOptions
    29  	ConfigFile string
    30  	ConfigDir  string
    31  }