github.com/qioalice/ekago/v3@v3.3.2-0.20221202205325-5c262d586ee4/ekatyp/syncer.go (about)

     1  // Copyright © 2019. All rights reserved.
     2  // Author: Ilya Yuryevich.
     3  // Contacts: iyuryevich@pm.me, https://github.com/qioalice
     4  // License: https://opensource.org/licenses/MIT
     5  
     6  package ekatyp
     7  
     8  import "io"
     9  
    10  type Syncer interface {
    11  	Sync() error
    12  }
    13  
    14  type WriteSyncer interface {
    15  	io.Writer
    16  	Syncer
    17  }
    18  
    19  type WriteSyncCloser interface {
    20  	io.WriteCloser
    21  	Syncer
    22  }