Documentation
¶
Overview ¶
Package types the common types used by CNPG
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTargetTime ¶
ParseTargetTime returns the parsed targetTime which is used for point-in-time-recovery Currently, we support formats of targetTime as follows: YYYY-MM-DD HH24:MI:SS YYYY-MM-DD HH24:MI:SS.FF6TZH YYYY-MM-DD HH24:MI:SS.FF6TZH:TZM YYYY-MM-DDTHH24:MI:SSZ (time.RFC3339) YYYY-MM-DDTHH24:MI:SS±TZH:TZM (time.RFC3339) YYYY-MM-DDTHH24:MI:SSS±TZH:TZM (time.RFC3339Micro) YYYY-MM-DDTHH24:MI:SS (modified time.RFC3339)
Types ¶
type LSN ¶
type LSN string
LSN is a string composed by two hexadecimal numbers, separated by "/"
func Int64ToLSN ¶
Int64ToLSN convert an int64 LSN to its string representation
func LSNStartFromWALName ¶
LSNStartFromWALName extracts the start LSN from a WAL file name
func (LSN) Components ¶
Components an LSN into its components
func (LSN) WALFileName ¶
WALFileName computes the name of the WAL file hosting the passed LSN