package
0.0.0-20230630090556-3c16d7b7d55e
Repository: https://github.com/hhzhhzhhz/sentinel-golang.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Entry
Entry is the basic API of Sentinel.
No description provided by the author
Initialization func initialize the Sentinel's runtime environment, including: 1.
InitWithConfig initializes Sentinel using given config.
Init loads Sentinel general configuration from the given YAML file and initializes Sentinel.
InitWithParser initializes Sentinel using given config parser parser deserializes the configBytes and return config.Entity.
TraceError records the provided error to the given SentinelEntry.
DEPRECATED: use WithBatchCount instead.
WithArgs sets the resource entry with the given additional parameters.
WithAttachment set the resource entry with the given k-v pair.
WithAttachment set the resource entry with the given k-v pairs.
WithBatchCount sets the resource entry with the given batch count (by default 1).
WithFlag sets the resource entry with the given additional flag.
WithResourceType sets the resource entry with the given resource type.
WithSlotChain sets the slot chain.
WithTrafficType sets the resource entry with the given traffic type.

# Structs

EntryOptions represents the options of a Sentinel resource entry.

# Type aliases

No description provided by the author