You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
262 B

  1. package filer_pb
  2. func (r *CreateEntryRequest) AddSignature(sig int32) {
  3. r.Signatures = append(r.Signatures, sig)
  4. }
  5. func (r *CreateEntryRequest) HasSigned(sig int32) bool {
  6. for _, s := range r.Signatures {
  7. if s == sig {
  8. return true
  9. }
  10. }
  11. return false
  12. }