Documentation ¶
Index ¶
- Constants
- func ConfigLoggingCallback(f func(level LogLevel, levelStr string, format string, a ...interface{}))
- func MSG(id string) string
- func SetLoggingLevel(level LogLevel)
- type AmaasClient
- func (ac *AmaasClient) ConfigAuth(ctx context.Context) context.Context
- func (ac *AmaasClient) Destroy()
- func (ac *AmaasClient) DumpConfig() (output string)
- func (ac *AmaasClient) GetConnection() *grpc.ClientConn
- func (ac *AmaasClient) GetTimeoutSetting() int
- func (ac *AmaasClient) ScanBuffer(buffer []byte, identifier string) (resp string, e error)
- func (ac *AmaasClient) ScanFile(filePath string) (resp string, e error)
- type AmaasClientArchiveHandler
- type AmaasClientBufferReader
- func (reader *AmaasClientBufferReader) Close()
- func (reader *AmaasClientBufferReader) DataSize() (int64, error)
- func (reader *AmaasClientBufferReader) Hash() (string, error)
- func (reader *AmaasClientBufferReader) Identifier() string
- func (reader *AmaasClientBufferReader) ReadBytes(offset int64, length int32) ([]byte, error)
- type AmaasClientFileReader
- func (reader *AmaasClientFileReader) Close()
- func (reader *AmaasClientFileReader) DataSize() (int64, error)
- func (reader *AmaasClientFileReader) Hash() (string, error)
- func (reader *AmaasClientFileReader) Identifier() string
- func (reader *AmaasClientFileReader) ReadBytes(offset int64, length int32) ([]byte, error)
- type AmaasClientReader
- type LogLevel
- type LoggerCallback
Constants ¶
View Source
const ( LogLevelOff LogLevel = 0 LogLevelFatal = 1 LogLevelError = 2 LogLevelWarning = 3 LogLevelInfo = 4 LogLevelDebug = 5 )
Variables ¶
This section is empty.
Functions ¶
func ConfigLoggingCallback ¶
func SetLoggingLevel ¶
func SetLoggingLevel(level LogLevel)
Types ¶
type AmaasClient ¶
type AmaasClient struct {
// contains filtered or unexported fields
}
func NewClientInternal ¶
func NewClientInternal(key string, addr string, useTLS bool) (*AmaasClient, error)
func (*AmaasClient) ConfigAuth ¶
func (ac *AmaasClient) ConfigAuth(ctx context.Context) context.Context
func (*AmaasClient) Destroy ¶
func (ac *AmaasClient) Destroy()
func (*AmaasClient) DumpConfig ¶
func (ac *AmaasClient) DumpConfig() (output string)
func (*AmaasClient) GetConnection ¶
func (ac *AmaasClient) GetConnection() *grpc.ClientConn
func (*AmaasClient) GetTimeoutSetting ¶
func (ac *AmaasClient) GetTimeoutSetting() int
func (*AmaasClient) ScanBuffer ¶
func (ac *AmaasClient) ScanBuffer(buffer []byte, identifier string) (resp string, e error)
type AmaasClientArchiveHandler ¶
type AmaasClientArchiveHandler struct { }
type AmaasClientBufferReader ¶
type AmaasClientBufferReader struct {
// contains filtered or unexported fields
}
func InitBufferReader ¶
func InitBufferReader(memBuffer []byte, identifier string) (*AmaasClientBufferReader, error)
func (*AmaasClientBufferReader) Close ¶
func (reader *AmaasClientBufferReader) Close()
func (*AmaasClientBufferReader) DataSize ¶
func (reader *AmaasClientBufferReader) DataSize() (int64, error)
func (*AmaasClientBufferReader) Hash ¶
func (reader *AmaasClientBufferReader) Hash() (string, error)
return hash value of buffer
func (*AmaasClientBufferReader) Identifier ¶
func (reader *AmaasClientBufferReader) Identifier() string
type AmaasClientFileReader ¶
type AmaasClientFileReader struct {
// contains filtered or unexported fields
}
func InitFileReader ¶
func InitFileReader(fileName string) (*AmaasClientFileReader, error)
func (*AmaasClientFileReader) Close ¶
func (reader *AmaasClientFileReader) Close()
func (*AmaasClientFileReader) DataSize ¶
func (reader *AmaasClientFileReader) DataSize() (int64, error)
func (*AmaasClientFileReader) Hash ¶
func (reader *AmaasClientFileReader) Hash() (string, error)
func (*AmaasClientFileReader) Identifier ¶
func (reader *AmaasClientFileReader) Identifier() string
type AmaasClientReader ¶
type LoggerCallback ¶
Click to show internal directories.
Click to hide internal directories.