smn_muti_write_cache

package
v0.0.0-...-8887d1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMutiWriteCache

type FileMutiWriteCache struct {
	Head *bytes.Buffer
	Tail *bytes.Buffer

	Contains []FileMutiWriteCacheItf
	// contains filtered or unexported fields
}

func (*FileMutiWriteCache) Append

func (this *FileMutiWriteCache) Append(itfs ...FileMutiWriteCacheItf)

func (*FileMutiWriteCache) GetFather

func (this *FileMutiWriteCache) GetFather() FileMutiWriteCacheItf

func (*FileMutiWriteCache) Output

func (this *FileMutiWriteCache) Output(oup io.Writer) (int, error)

func (*FileMutiWriteCache) SetFather

func (this *FileMutiWriteCache) SetFather(itf FileMutiWriteCacheItf)

func (*FileMutiWriteCache) WriteHead

func (this *FileMutiWriteCache) WriteHead(str string) (int, error)

func (*FileMutiWriteCache) WriteHeadLine

func (this *FileMutiWriteCache) WriteHeadLine(str string) (int, error)

func (*FileMutiWriteCache) WriteTail

func (this *FileMutiWriteCache) WriteTail(str string) (int, error)

func (*FileMutiWriteCache) WriteTailLine

func (this *FileMutiWriteCache) WriteTailLine(str string) (int, error)

type FileMutiWriteCacheItf

type FileMutiWriteCacheItf interface {
	WriteHead(str string) (int, error)
	WriteHeadLine(str string) (int, error)
	WriteTail(str string) (int, error)
	WriteTailLine(str string) (int, error)
	Append(itf ...FileMutiWriteCacheItf)
	GetFather() FileMutiWriteCacheItf
	SetFather(itf FileMutiWriteCacheItf)
	Output(oup io.Writer) (int, error)
}

func NewFileMutiWriteCache

func NewFileMutiWriteCache() FileMutiWriteCacheItf

type StringCache

type StringCache struct {
	// contains filtered or unexported fields
}

func NewStrCache

func NewStrCache(strs ...string) *StringCache

func (*StringCache) Append

func (this *StringCache) Append(itf ...FileMutiWriteCacheItf)

func (*StringCache) GetFather

func (this *StringCache) GetFather() FileMutiWriteCacheItf

func (*StringCache) Output

func (this *StringCache) Output(oup io.Writer) (int, error)

func (*StringCache) SetFather

func (this *StringCache) SetFather(itf FileMutiWriteCacheItf)

func (*StringCache) WriteHead

func (this *StringCache) WriteHead(str string) (int, error)

func (*StringCache) WriteHeadLine

func (this *StringCache) WriteHeadLine(str string) (int, error)

func (*StringCache) WriteTail

func (this *StringCache) WriteTail(str string) (int, error)

func (*StringCache) WriteTailLine

func (this *StringCache) WriteTailLine(str string) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL