structmatcher

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments Copyright (C) ITsysCOM GmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>

Index

Constants

View Source
const (
	CondEQ  = "*eq"
	CondGT  = "*gt"
	CondGTE = "*gte"
	CondLT  = "*lt"
	CondLTE = "*lte"
	CondEXP = "*exp"
	CondOR  = "*or"
	CondAND = "*and"
	CondNOT = "*not"
	CondHAS = "*has"
	CondRSR = "*rsr"
)

Variables

View Source
var (
	ErrParserError = errors.New("PARSER_ERROR")
)

Functions

func NewErrInvalidArgument

func NewErrInvalidArgument(arg interface{}) error

Types

type StringMap

type StringMap map[string]bool

type StructMatcher

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

func NewStructMatcher

func NewStructMatcher(q string) (sm *StructMatcher, err error)

func (*StructMatcher) Match

func (sm *StructMatcher) Match(o interface{}) (bool, error)

func (*StructMatcher) Parse

func (sm *StructMatcher) Parse(s string) (err error)

Jump to

Keyboard shortcuts

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