Documentation
¶
Index ¶
- type Func
- type MsgAlertFunc
- type MsgChannelFunc
- type MsgEventFunc
- type MsgInternalFunc
- type MsgInternalToFunc
- type MsgSubscriberFunc
- type MsgTemplateFunc
- type MsgTypeFunc
- type NlogAlertFunc
- type NlogFunc
- type OrgRoleUserFunc
- type Query
- type SilenceFunc
- type TraverseFunc
- type TraverseMsgAlert
- type TraverseMsgChannel
- type TraverseMsgEvent
- type TraverseMsgInternal
- type TraverseMsgInternalTo
- type TraverseMsgSubscriber
- type TraverseMsgTemplate
- type TraverseMsgType
- type TraverseNlog
- type TraverseNlogAlert
- type TraverseOrgRoleUser
- type TraverseSilence
- type TraverseUser
- type UserFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
The Func type is an adapter that allows ordinary functions to be used as interceptors. Unlike traversal functions, interceptors are skipped during graph traversals. Note that the implementation of Func is different from the one defined in entgo.io/ent.InterceptFunc.
type MsgAlertFunc ¶
The MsgAlertFunc type is an adapter to allow the use of ordinary function as a Querier.
type MsgChannelFunc ¶
The MsgChannelFunc type is an adapter to allow the use of ordinary function as a Querier.
type MsgEventFunc ¶
The MsgEventFunc type is an adapter to allow the use of ordinary function as a Querier.
type MsgInternalFunc ¶
The MsgInternalFunc type is an adapter to allow the use of ordinary function as a Querier.
type MsgInternalToFunc ¶
The MsgInternalToFunc type is an adapter to allow the use of ordinary function as a Querier.
type MsgSubscriberFunc ¶
The MsgSubscriberFunc type is an adapter to allow the use of ordinary function as a Querier.
type MsgTemplateFunc ¶
The MsgTemplateFunc type is an adapter to allow the use of ordinary function as a Querier.
type MsgTypeFunc ¶
The MsgTypeFunc type is an adapter to allow the use of ordinary function as a Querier.
type NlogAlertFunc ¶
The NlogAlertFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrgRoleUserFunc ¶
The OrgRoleUserFunc type is an adapter to allow the use of ordinary function as a Querier.
type Query ¶
type Query interface { // Type returns the string representation of the query type. Type() string // Limit the number of records to be returned by this query. Limit(int) // Offset to start from. Offset(int) // Unique configures the query builder to filter duplicate records. Unique(bool) // Order specifies how the records should be ordered. Order(...func(*sql.Selector)) // WhereP appends storage-level predicates to the query builder. Using this method, users // can use type-assertion to append predicates that do not depend on any generated package. WhereP(...func(*sql.Selector)) }
The Query interface represents an operation that queries a graph. By using this interface, users can write generic code that manipulates query builders of different types.
type SilenceFunc ¶
The SilenceFunc type is an adapter to allow the use of ordinary function as a Querier.
type TraverseFunc ¶
The TraverseFunc type is an adapter to allow the use of ordinary function as Traverser. If f is a function with the appropriate signature, TraverseFunc(f) is a Traverser that calls f.
type TraverseMsgAlert ¶
type TraverseMsgAlert func(context.Context, *ent.MsgAlertQuery) error
The TraverseMsgAlert type is an adapter to allow the use of ordinary function as Traverser.
type TraverseMsgChannel ¶
type TraverseMsgChannel func(context.Context, *ent.MsgChannelQuery) error
The TraverseMsgChannel type is an adapter to allow the use of ordinary function as Traverser.
type TraverseMsgEvent ¶
type TraverseMsgEvent func(context.Context, *ent.MsgEventQuery) error
The TraverseMsgEvent type is an adapter to allow the use of ordinary function as Traverser.
type TraverseMsgInternal ¶
type TraverseMsgInternal func(context.Context, *ent.MsgInternalQuery) error
The TraverseMsgInternal type is an adapter to allow the use of ordinary function as Traverser.
type TraverseMsgInternalTo ¶
type TraverseMsgInternalTo func(context.Context, *ent.MsgInternalToQuery) error
The TraverseMsgInternalTo type is an adapter to allow the use of ordinary function as Traverser.
type TraverseMsgSubscriber ¶
type TraverseMsgSubscriber func(context.Context, *ent.MsgSubscriberQuery) error
The TraverseMsgSubscriber type is an adapter to allow the use of ordinary function as Traverser.
type TraverseMsgTemplate ¶
type TraverseMsgTemplate func(context.Context, *ent.MsgTemplateQuery) error
The TraverseMsgTemplate type is an adapter to allow the use of ordinary function as Traverser.
type TraverseMsgType ¶
type TraverseMsgType func(context.Context, *ent.MsgTypeQuery) error
The TraverseMsgType type is an adapter to allow the use of ordinary function as Traverser.
type TraverseNlog ¶
The TraverseNlog type is an adapter to allow the use of ordinary function as Traverser.
type TraverseNlogAlert ¶
type TraverseNlogAlert func(context.Context, *ent.NlogAlertQuery) error
The TraverseNlogAlert type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrgRoleUser ¶
type TraverseOrgRoleUser func(context.Context, *ent.OrgRoleUserQuery) error
The TraverseOrgRoleUser type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSilence ¶
type TraverseSilence func(context.Context, *ent.SilenceQuery) error
The TraverseSilence type is an adapter to allow the use of ordinary function as Traverser.
type TraverseUser ¶
The TraverseUser type is an adapter to allow the use of ordinary function as Traverser.