gitlab.com/evatix-go/core@v1.3.55/keymk/vars.go (about)

     1  package keymk
     2  
     3  import "gitlab.com/evatix-go/core/constants"
     4  
     5  var (
     6  	PipeJoinerOption = &Option{
     7  		Joiner:           DefaultJoiner,
     8  		IsSkipEmptyEntry: true,
     9  		IsUseBrackets:    true,
    10  		StartBracket:     constants.Pipe,
    11  		EndBracket:       constants.Pipe,
    12  	}
    13  
    14  	PipeCurlyJoinerOption = &Option{
    15  		Joiner:           DefaultJoiner,
    16  		IsSkipEmptyEntry: true,
    17  		IsUseBrackets:    true,
    18  		StartBracket:     constants.Pipe + constants.CurlyStart,
    19  		EndBracket:       constants.CurlyEnd + constants.Pipe,
    20  	}
    21  
    22  	PipeSquareJoinerOption = &Option{
    23  		Joiner:           DefaultJoiner,
    24  		IsSkipEmptyEntry: true,
    25  		IsUseBrackets:    true,
    26  		StartBracket:     constants.Pipe + constants.SquareStart,
    27  		EndBracket:       constants.SquareEnd + constants.Pipe,
    28  	}
    29  
    30  	CurlyBracePathJoinerOption = &Option{
    31  		Joiner:           constants.PathSeparator,
    32  		IsSkipEmptyEntry: true,
    33  		IsUseBrackets:    true,
    34  		StartBracket:     constants.CurlyStart,
    35  		EndBracket:       constants.CurlyEnd,
    36  	}
    37  
    38  	CurlyBraceJoinerOption = &Option{
    39  		Joiner:           DefaultJoiner,
    40  		IsSkipEmptyEntry: true,
    41  		IsUseBrackets:    true,
    42  		StartBracket:     constants.CurlyStart,
    43  		EndBracket:       constants.CurlyEnd,
    44  	}
    45  
    46  	BracketJoinerOption = &Option{
    47  		Joiner:           DefaultJoiner,
    48  		IsSkipEmptyEntry: true,
    49  		IsUseBrackets:    true,
    50  		StartBracket:     constants.SquareStart,
    51  		EndBracket:       constants.SquareEnd,
    52  	}
    53  
    54  	ParenthesisJoinerOption = &Option{
    55  		Joiner:           DefaultJoiner,
    56  		IsSkipEmptyEntry: true,
    57  		IsUseBrackets:    true,
    58  		StartBracket:     constants.ParenthesisStart,
    59  		EndBracket:       constants.ParenthesisEnd,
    60  	}
    61  
    62  	JoinerOption = &Option{
    63  		Joiner:           constants.Hyphen,
    64  		IsSkipEmptyEntry: true,
    65  		IsUseBrackets:    false,
    66  		StartBracket:     constants.EmptyString,
    67  		EndBracket:       constants.EmptyString,
    68  	}
    69  
    70  	FullLegends = LegendName{
    71  		Root:    "root",
    72  		Package: "package",
    73  		Group:   "group",
    74  		User:    "user",
    75  		Item:    "item",
    76  	}
    77  
    78  	FullCategoryLegends = LegendName{
    79  		Root:    "root",
    80  		Package: "package",
    81  		Group:   "category",
    82  		User:    "user",
    83  		Item:    "item",
    84  	}
    85  
    86  	FullEventLegends = LegendName{
    87  		Root:    "root",
    88  		Package: "package",
    89  		Group:   "event",
    90  		User:    "user",
    91  		Item:    "item",
    92  	}
    93  
    94  	ShortLegends = LegendName{
    95  		Root:    "r",
    96  		Package: "p",
    97  		Group:   "g",
    98  		User:    "u",
    99  		Item:    "i",
   100  	}
   101  
   102  	ShortEventLegends = LegendName{
   103  		Root:    "r",
   104  		Group:   "e",
   105  		Package: "p",
   106  		Item:    "i",
   107  	}
   108  
   109  	NewKey           = &newKeyCreator{}
   110  	NewKeyWithLegend = &newKeyWithLegendCreator{}
   111  	FixedLegend      = fixedLegend{}
   112  )