package context

Import Path
	context (on go.dev)

Dependency Relation
	imports 5 packages, and imported by 42 packages

Involved Source Files Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes. Incoming requests to a server should create a [Context], and outgoing calls to servers should accept a Context. The chain of function calls between them must propagate the Context, optionally replacing it with a derived Context created using [WithCancel], [WithDeadline], [WithTimeout], or [WithValue]. When a Context is canceled, all Contexts derived from it are also canceled. The [WithCancel], [WithDeadline], and [WithTimeout] functions take a Context (the parent) and return a derived Context (the child) and a [CancelFunc]. Calling the CancelFunc cancels the child and its children, removes the parent's reference to the child, and stops any associated timers. Failing to call the CancelFunc leaks the child and its children until the parent is canceled or the timer fires. The go vet tool checks that CancelFuncs are used on all control-flow paths. The [WithCancelCause] function returns a [CancelCauseFunc], which takes an error and records it as the cancellation cause. Calling [Cause] on the canceled context or any of its children retrieves the cause. If no cause is specified, Cause(ctx) returns the same value as ctx.Err(). Programs that use Contexts should follow these rules to keep interfaces consistent across packages and enable static analysis tools to check context propagation: Do not store Contexts inside a struct type; instead, pass a Context explicitly to each function that needs it. The Context should be the first parameter, typically named ctx: func DoSomething(ctx context.Context, arg Arg) error { // ... use ctx ... } Do not pass a nil [Context], even if a function permits it. Pass [context.TODO] if you are unsure about which Context to use. Use context Values only for request-scoped data that transits processes and APIs, not for passing optional parameters to functions. The same Context may be passed to functions running in different goroutines; Contexts are safe for simultaneous use by multiple goroutines. See https://blog.golang.org/context for example code for a server that uses Contexts.
Code Examples package main import ( "context" "fmt" "sync" "time" ) func main() { waitOnCond := func(ctx context.Context, cond *sync.Cond, conditionMet func() bool) error { stopf := context.AfterFunc(ctx, func() { // We need to acquire cond.L here to be sure that the Broadcast // below won't occur before the call to Wait, which would result // in a missed signal (and deadlock). cond.L.Lock() defer cond.L.Unlock() // If multiple goroutines are waiting on cond simultaneously, // we need to make sure we wake up exactly this one. // That means that we need to Broadcast to all of the goroutines, // which will wake them all up. // // If there are N concurrent calls to waitOnCond, each of the goroutines // will spuriously wake up O(N) other goroutines that aren't ready yet, // so this will cause the overall CPU cost to be O(N²). cond.Broadcast() }) defer stopf() // Since the wakeups are using Broadcast instead of Signal, this call to // Wait may unblock due to some other goroutine's context becoming done, // so to be sure that ctx is actually done we need to check it in a loop. for !conditionMet() { cond.Wait() if ctx.Err() != nil { return ctx.Err() } } return nil } cond := sync.NewCond(new(sync.Mutex)) var wg sync.WaitGroup for i := 0; i < 4; i++ { wg.Add(1) go func() { defer wg.Done() ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond) defer cancel() cond.L.Lock() defer cond.L.Unlock() err := waitOnCond(ctx, cond, func() bool { return false }) fmt.Println(err) }() } wg.Wait() } package main import ( "context" "fmt" "net" "time" ) func main() { readFromConn := func(ctx context.Context, conn net.Conn, b []byte) (n int, err error) { stopc := make(chan struct{}) stop := context.AfterFunc(ctx, func() { conn.SetReadDeadline(time.Now()) close(stopc) }) n, err = conn.Read(b) if !stop() { // The AfterFunc was started. // Wait for it to complete, and reset the Conn's deadline. <-stopc conn.SetReadDeadline(time.Time{}) return n, ctx.Err() } return n, err } listener, err := net.Listen("tcp", ":0") if err != nil { fmt.Println(err) return } defer listener.Close() conn, err := net.Dial(listener.Addr().Network(), listener.Addr().String()) if err != nil { fmt.Println(err) return } defer conn.Close() ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond) defer cancel() b := make([]byte, 1024) _, err = readFromConn(ctx, conn, b) fmt.Println(err) } package main import ( "context" "errors" "fmt" ) func main() { // mergeCancel returns a context that contains the values of ctx, // and which is canceled when either ctx or cancelCtx is canceled. mergeCancel := func(ctx, cancelCtx context.Context) (context.Context, context.CancelFunc) { ctx, cancel := context.WithCancelCause(ctx) stop := context.AfterFunc(cancelCtx, func() { cancel(context.Cause(cancelCtx)) }) return ctx, func() { stop() cancel(context.Canceled) } } ctx1, cancel1 := context.WithCancelCause(context.Background()) defer cancel1(errors.New("ctx1 canceled")) ctx2, cancel2 := context.WithCancelCause(context.Background()) mergedCtx, mergedCancel := mergeCancel(ctx1, ctx2) defer mergedCancel() cancel2(errors.New("ctx2 canceled")) <-mergedCtx.Done() fmt.Println(context.Cause(mergedCtx)) } package main import ( "context" "fmt" ) func main() { // gen generates integers in a separate goroutine and // sends them to the returned channel. // The callers of gen need to cancel the context once // they are done consuming generated integers not to leak // the internal goroutine started by gen. gen := func(ctx context.Context) <-chan int { dst := make(chan int) n := 1 go func() { for { select { case <-ctx.Done(): return // returning not to leak the goroutine case dst <- n: n++ } } }() return dst } ctx, cancel := context.WithCancel(context.Background()) defer cancel() // cancel when we are finished consuming integers for n := range gen(ctx) { fmt.Println(n) if n == 5 { break } } } { d := time.Now().Add(shortDuration) ctx, cancel := context.WithDeadline(context.Background(), d) defer cancel() select { case <-neverReady: fmt.Println("ready") case <-ctx.Done(): fmt.Println(ctx.Err()) } } { ctx, cancel := context.WithTimeout(context.Background(), shortDuration) defer cancel() select { case <-neverReady: fmt.Println("ready") case <-ctx.Done(): fmt.Println(ctx.Err()) } } package main import ( "context" "fmt" ) func main() { type favContextKey string f := func(ctx context.Context, k favContextKey) { if v := ctx.Value(k); v != nil { fmt.Println("found value:", v) return } fmt.Println("key not found:", k) } k := favContextKey("language") ctx := context.WithValue(context.Background(), k, "Go") f(ctx, k) f(ctx, favContextKey("color")) }
Package-Level Type Names (total 3)
/* sort by: | */
A CancelCauseFunc behaves like a [CancelFunc] but additionally sets the cancellation cause. This cause can be retrieved by calling [Cause] on the canceled Context or on any of its derived Contexts. If the context has already been canceled, CancelCauseFunc does not set the cause. For example, if childContext is derived from parentContext: - if parentContext is canceled with cause1 before childContext is canceled with cause2, then Cause(parentContext) == Cause(childContext) == cause1 - if childContext is canceled with cause2 before parentContext is canceled with cause1, then Cause(parentContext) == cause1 and Cause(childContext) == cause2 func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc)
A CancelFunc tells an operation to abandon its work. A CancelFunc does not wait for the work to stop. A CancelFunc may be called by multiple goroutines simultaneously. After the first call, subsequent calls to a CancelFunc do nothing. func WithCancel(parent Context) (ctx Context, cancel CancelFunc) func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc)
A Context carries a deadline, a cancellation signal, and other values across API boundaries. Context's methods may be called by multiple goroutines simultaneously. Deadline returns the time when work done on behalf of this context should be canceled. Deadline returns ok==false when no deadline is set. Successive calls to Deadline return the same results. Done returns a channel that's closed when work done on behalf of this context should be canceled. Done may return nil if this context can never be canceled. Successive calls to Done return the same value. The close of the Done channel may happen asynchronously, after the cancel function returns. WithCancel arranges for Done to be closed when cancel is called; WithDeadline arranges for Done to be closed when the deadline expires; WithTimeout arranges for Done to be closed when the timeout elapses. Done is provided for use in select statements: // Stream generates values with DoSomething and sends them to out // until DoSomething returns an error or ctx.Done is closed. func Stream(ctx context.Context, out chan<- Value) error { for { v, err := DoSomething(ctx) if err != nil { return err } select { case <-ctx.Done(): return ctx.Err() case out <- v: } } } See https://blog.golang.org/pipelines for more examples of how to use a Done channel for cancellation. If Done is not yet closed, Err returns nil. If Done is closed, Err returns a non-nil error explaining why: Canceled if the context was canceled or DeadlineExceeded if the context's deadline passed. After Err returns a non-nil error, successive calls to Err return the same error. Value returns the value associated with this context for key, or nil if no value is associated with key. Successive calls to Value with the same key returns the same result. Use context values only for request-scoped data that transits processes and API boundaries, not for passing optional parameters to functions. A key identifies a specific value in a Context. Functions that wish to store values in Context typically allocate a key in a global variable then use that key as the argument to context.WithValue and Context.Value. A key can be any type that supports equality; packages should define keys as an unexported type to avoid collisions. Packages that define a Context key should provide type-safe accessors for the values stored using that key: // Package user defines a User type that's stored in Contexts. package user import "context" // User is the type of value stored in the Contexts. type User struct {...} // key is an unexported type for keys defined in this package. // This prevents collisions with keys defined in other packages. type key int // userKey is the key for user.User values in Contexts. It is // unexported; clients use user.NewContext and user.FromContext // instead of using this key directly. var userKey key // NewContext returns a new Context that carries value u. func NewContext(ctx context.Context, u *User) context.Context { return context.WithValue(ctx, userKey, u) } // FromContext returns the User value stored in ctx, if any. func FromContext(ctx context.Context) (*User, bool) { u, ok := ctx.Value(userKey).(*User) return u, ok } *github.com/valyala/fasthttp.RequestCtx func Background() Context func TODO() Context func WithCancel(parent Context) (ctx Context, cancel CancelFunc) func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc) func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) func WithoutCancel(parent Context) Context func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) func WithValue(parent Context, key, val any) Context func crypto/tls.(*CertificateRequestInfo).Context() Context func crypto/tls.(*ClientHelloInfo).Context() Context func github.com/go-co-op/gocron.(*Job).Context() Context func github.com/go-resty/resty/v2.(*Request).Context() Context func github.com/gofiber/fiber/v2.(*Ctx).UserContext() Context func github.com/jackc/pgx/v5.BatchTracer.TraceBatchStart(ctx Context, conn *pgx.Conn, data pgx.TraceBatchStartData) Context func github.com/jackc/pgx/v5.ConnectTracer.TraceConnectStart(ctx Context, data pgx.TraceConnectStartData) Context func github.com/jackc/pgx/v5.CopyFromTracer.TraceCopyFromStart(ctx Context, conn *pgx.Conn, data pgx.TraceCopyFromStartData) Context func github.com/jackc/pgx/v5.PrepareTracer.TracePrepareStart(ctx Context, conn *pgx.Conn, data pgx.TracePrepareStartData) Context func github.com/jackc/pgx/v5.QueryTracer.TraceQueryStart(ctx Context, conn *pgx.Conn, data pgx.TraceQueryStartData) Context func github.com/jcmturner/gokrb5/v8/gssapi.ContextToken.Context() Context func github.com/jcmturner/gokrb5/v8/gssapi.Mechanism.AcceptSecContext(ct gssapi.ContextToken) (bool, Context, gssapi.Status) func github.com/jcmturner/gokrb5/v8/spnego.(*KRB5Token).Context() Context func github.com/jcmturner/gokrb5/v8/spnego.(*NegTokenInit).Context() Context func github.com/jcmturner/gokrb5/v8/spnego.(*NegTokenResp).Context() Context func github.com/jcmturner/gokrb5/v8/spnego.(*SPNEGO).AcceptSecContext(ct gssapi.ContextToken) (bool, Context, gssapi.Status) func github.com/jcmturner/gokrb5/v8/spnego.(*SPNEGOToken).Context() Context func github.com/Nerzal/gocloak/v13.WithTracer(ctx Context, tracer opentracing.Tracer) Context func github.com/opentracing/opentracing-go.ContextWithSpan(ctx Context, span opentracing.Span) Context func github.com/opentracing/opentracing-go.StartSpanFromContext(ctx Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, Context) func github.com/opentracing/opentracing-go.StartSpanFromContextWithTracer(ctx Context, tracer opentracing.Tracer, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, Context) func github.com/opentracing/opentracing-go.TracerContextWithSpanExtension.ContextWithSpanHook(ctx Context, span opentracing.Span) Context func github.com/pkg/sftp.(*Request).Context() Context func github.com/robfig/cron/v3.(*Cron).Stop() Context func net/http.(*Request).Context() Context func net/http/httptrace.WithClientTrace(ctx Context, trace *httptrace.ClientTrace) Context func runtime/trace.NewTask(pctx Context, taskType string) (ctx Context, task *trace.Task) func AfterFunc(ctx Context, f func()) (stop func() bool) func Cause(c Context) error func WithCancel(parent Context) (ctx Context, cancel CancelFunc) func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc) func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) func WithoutCancel(parent Context) Context func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) func WithValue(parent Context, key, val any) Context func crypto/tls.(*Conn).HandshakeContext(ctx Context) error func crypto/tls.(*Dialer).DialContext(ctx Context, network, addr string) (net.Conn, error) func crypto/tls.(*QUICConn).Start(ctx Context) error func database/sql.(*Conn).BeginTx(ctx Context, opts *sql.TxOptions) (*sql.Tx, error) func database/sql.(*Conn).ExecContext(ctx Context, query string, args ...any) (sql.Result, error) func database/sql.(*Conn).PingContext(ctx Context) error func database/sql.(*Conn).PrepareContext(ctx Context, query string) (*sql.Stmt, error) func database/sql.(*Conn).QueryContext(ctx Context, query string, args ...any) (*sql.Rows, error) func database/sql.(*Conn).QueryRowContext(ctx Context, query string, args ...any) *sql.Row func database/sql.(*DB).BeginTx(ctx Context, opts *sql.TxOptions) (*sql.Tx, error) func database/sql.(*DB).Conn(ctx Context) (*sql.Conn, error) func database/sql.(*DB).ExecContext(ctx Context, query string, args ...any) (sql.Result, error) func database/sql.(*DB).PingContext(ctx Context) error func database/sql.(*DB).PrepareContext(ctx Context, query string) (*sql.Stmt, error) func database/sql.(*DB).QueryContext(ctx Context, query string, args ...any) (*sql.Rows, error) func database/sql.(*DB).QueryRowContext(ctx Context, query string, args ...any) *sql.Row func database/sql.(*Stmt).ExecContext(ctx Context, args ...any) (sql.Result, error) func database/sql.(*Stmt).QueryContext(ctx Context, args ...any) (*sql.Rows, error) func database/sql.(*Stmt).QueryRowContext(ctx Context, args ...any) *sql.Row func database/sql.(*Tx).ExecContext(ctx Context, query string, args ...any) (sql.Result, error) func database/sql.(*Tx).PrepareContext(ctx Context, query string) (*sql.Stmt, error) func database/sql.(*Tx).QueryContext(ctx Context, query string, args ...any) (*sql.Rows, error) func database/sql.(*Tx).QueryRowContext(ctx Context, query string, args ...any) *sql.Row func database/sql.(*Tx).StmtContext(ctx Context, stmt *sql.Stmt) *sql.Stmt func database/sql/driver.ConnBeginTx.BeginTx(ctx Context, opts driver.TxOptions) (driver.Tx, error) func database/sql/driver.Connector.Connect(Context) (driver.Conn, error) func database/sql/driver.ConnPrepareContext.PrepareContext(ctx Context, query string) (driver.Stmt, error) func database/sql/driver.ExecerContext.ExecContext(ctx Context, query string, args []driver.NamedValue) (driver.Result, error) func database/sql/driver.Pinger.Ping(ctx Context) error func database/sql/driver.QueryerContext.QueryContext(ctx Context, query string, args []driver.NamedValue) (driver.Rows, error) func database/sql/driver.SessionResetter.ResetSession(ctx Context) error func database/sql/driver.StmtExecContext.ExecContext(ctx Context, args []driver.NamedValue) (driver.Result, error) func database/sql/driver.StmtQueryContext.QueryContext(ctx Context, args []driver.NamedValue) (driver.Rows, error) func github.com/avast/retry-go.Context(ctx Context) retry.Option func github.com/go-co-op/gocron.Elector.IsLeader(ctx Context) error func github.com/go-co-op/gocron.Lock.Unlock(ctx Context) error func github.com/go-co-op/gocron.Locker.Lock(ctx Context, key string) (gocron.Lock, error) func github.com/go-resty/resty/v2.(*Request).SetContext(ctx Context) *resty.Request func github.com/gofiber/fiber/v2.(*App).ShutdownWithContext(ctx Context) error func github.com/gofiber/fiber/v2.(*Ctx).SetUserContext(ctx Context) func github.com/gofiber/fiber/v2/internal/gopsutil/common.BootTimeWithContext(ctx Context) (uint64, error) func github.com/gofiber/fiber/v2/internal/gopsutil/common.CallLsofWithContext(ctx Context, invoke common.Invoker, pid int32, args ...string) ([]string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/common.CallPgrepWithContext(ctx Context, invoke common.Invoker, pid int32) ([]int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/common.Sleep(ctx Context, interval time.Duration) error func github.com/gofiber/fiber/v2/internal/gopsutil/common.VirtualizationWithContext(ctx Context) (string, string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/common.FakeInvoke.CommandWithContext(ctx Context, name string, arg ...string) ([]byte, error) func github.com/gofiber/fiber/v2/internal/gopsutil/common.Invoke.CommandWithContext(ctx Context, name string, arg ...string) ([]byte, error) func github.com/gofiber/fiber/v2/internal/gopsutil/common.Invoker.CommandWithContext(Context, string, ...string) ([]byte, error) func github.com/gofiber/fiber/v2/internal/gopsutil/cpu.CountsWithContext(ctx Context, logical bool) (int, error) func github.com/gofiber/fiber/v2/internal/gopsutil/cpu.InfoWithContext(ctx Context) ([]cpu.InfoStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/cpu.PercentWithContext(ctx Context, interval time.Duration, percpu bool) ([]float64, error) func github.com/gofiber/fiber/v2/internal/gopsutil/cpu.TimesWithContext(ctx Context, percpu bool) ([]cpu.TimesStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/load.AvgWithContext(ctx Context) (*load.AvgStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/load.MiscWithContext(ctx Context) (*load.MiscStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/mem.SwapMemoryWithContext(ctx Context) (*mem.SwapMemoryStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/mem.VirtualMemoryExWithContext(ctx Context) (*mem.VirtualMemoryExStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/mem.VirtualMemoryWithContext(ctx Context) (*mem.VirtualMemoryStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsMaxWithContext(ctx Context, kind string, max int) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsMaxWithoutUidsWithContext(ctx Context, kind string, max int) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsPidMaxWithContext(ctx Context, kind string, pid int32, max int) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsPidMaxWithoutUidsWithContext(ctx Context, kind string, pid int32, max int) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsPidWithContext(ctx Context, kind string, pid int32) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsPidWithoutUidsWithContext(ctx Context, kind string, pid int32) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsWithContext(ctx Context, kind string) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConnectionsWithoutUidsWithContext(ctx Context, kind string) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ConntrackStatsWithContext(ctx Context, percpu bool) ([]net.ConntrackStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.FilterCountersWithContext(ctx Context) ([]net.FilterStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.InterfacesWithContext(ctx Context) ([]net.InterfaceStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.IOCountersByFileWithContext(ctx Context, pernic bool, filename string) ([]net.IOCountersStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.IOCountersWithContext(ctx Context, pernic bool) ([]net.IOCountersStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.PidsWithContext(ctx Context) ([]int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ProtoCountersWithContext(ctx Context, protocols []string) ([]net.ProtoCountersStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/net.ReverseWithContext(ctx Context, s []byte) []byte func github.com/gofiber/fiber/v2/internal/gopsutil/process.PidExistsWithContext(ctx Context, pid int32) (bool, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.PidsWithContext(ctx Context) ([]int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.ProcessesWithContext(ctx Context) ([]*process.Process, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).BackgroundWithContext(ctx Context) (bool, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ChildrenWithContext(ctx Context) ([]*process.Process, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).CmdlineSliceWithContext(ctx Context) ([]string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).CmdlineWithContext(ctx Context) (string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ConnectionsMaxWithContext(ctx Context, max int) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ConnectionsWithContext(ctx Context) ([]net.ConnectionStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).CPUAffinityWithContext(ctx Context) ([]int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).CPUPercentWithContext(ctx Context) (float64, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).CreateTimeWithContext(ctx Context) (int64, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).CwdWithContext(ctx Context) (string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ExeWithContext(ctx Context) (string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ForegroundWithContext(ctx Context) (bool, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).GidsWithContext(ctx Context) ([]int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).GroupsWithContext(ctx Context) ([]int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).IOCountersWithContext(ctx Context) (*process.IOCountersStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).IOniceWithContext(ctx Context) (int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).IsRunningWithContext(ctx Context) (bool, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).KillWithContext(ctx Context) error func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).MemoryInfoExWithContext(ctx Context) (*process.MemoryInfoExStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).MemoryInfoWithContext(ctx Context) (*process.MemoryInfoStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).MemoryMapsWithContext(ctx Context, grouped bool) (*[]process.MemoryMapsStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).MemoryPercentWithContext(ctx Context) (float32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).NameWithContext(ctx Context) (string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).NetIOCountersWithContext(ctx Context, pernic bool) ([]net.IOCountersStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).NiceWithContext(ctx Context) (int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).NumCtxSwitchesWithContext(ctx Context) (*process.NumCtxSwitchesStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).NumFDsWithContext(ctx Context) (int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).NumThreadsWithContext(ctx Context) (int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).OpenFilesWithContext(ctx Context) ([]process.OpenFilesStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).PageFaultsWithContext(ctx Context) (*process.PageFaultsStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ParentWithContext(ctx Context) (*process.Process, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).PercentWithContext(ctx Context, interval time.Duration) (float64, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).PpidWithContext(ctx Context) (int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ResumeWithContext(ctx Context) error func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).RlimitUsageWithContext(ctx Context, gatherUsed bool) ([]process.RlimitStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).RlimitWithContext(ctx Context) ([]process.RlimitStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).SendSignalWithContext(ctx Context, sig syscall.Signal) error func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).StatusWithContext(ctx Context) (string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).SuspendWithContext(ctx Context) error func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).TerminalWithContext(ctx Context) (string, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).TerminateWithContext(ctx Context) error func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).ThreadsWithContext(ctx Context) (map[int32]*cpu.TimesStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).TimesWithContext(ctx Context) (*cpu.TimesStat, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).UidsWithContext(ctx Context) ([]int32, error) func github.com/gofiber/fiber/v2/internal/gopsutil/process.(*Process).UsernameWithContext(ctx Context) (string, error) func github.com/gofiber/fiber/v2/log.WithContext(ctx Context) log.CommonLogger func github.com/gofiber/fiber/v2/log.AllLogger.WithContext(ctx Context) log.CommonLogger func github.com/hirochachacha/go-smb2.(*Dialer).DialContext(ctx Context, tcpConn net.Conn) (*smb2.Session, error) func github.com/hirochachacha/go-smb2.(*Session).WithContext(ctx Context) *smb2.Session func github.com/hirochachacha/go-smb2.(*Share).WithContext(ctx Context) *smb2.Share func github.com/jackc/pgx/v5.BeginFunc(ctx Context, db interface{Begin(ctx Context) (pgx.Tx, error)}, fn func(pgx.Tx) error) (err error) func github.com/jackc/pgx/v5.BeginTxFunc(ctx Context, db interface{BeginTx(ctx Context, txOptions pgx.TxOptions) (pgx.Tx, error)}, txOptions pgx.TxOptions, fn func(pgx.Tx) error) (err error) func github.com/jackc/pgx/v5.Connect(ctx Context, connString string) (*pgx.Conn, error) func github.com/jackc/pgx/v5.ConnectConfig(ctx Context, connConfig *pgx.ConnConfig) (*pgx.Conn, error) func github.com/jackc/pgx/v5.ConnectWithOptions(ctx Context, connString string, options pgx.ParseConfigOptions) (*pgx.Conn, error) func github.com/jackc/pgx/v5.BatchTracer.TraceBatchEnd(ctx Context, conn *pgx.Conn, data pgx.TraceBatchEndData) func github.com/jackc/pgx/v5.BatchTracer.TraceBatchQuery(ctx Context, conn *pgx.Conn, data pgx.TraceBatchQueryData) func github.com/jackc/pgx/v5.BatchTracer.TraceBatchStart(ctx Context, conn *pgx.Conn, data pgx.TraceBatchStartData) Context func github.com/jackc/pgx/v5.(*Conn).Begin(ctx Context) (pgx.Tx, error) func github.com/jackc/pgx/v5.(*Conn).BeginTx(ctx Context, txOptions pgx.TxOptions) (pgx.Tx, error) func github.com/jackc/pgx/v5.(*Conn).Close(ctx Context) error func github.com/jackc/pgx/v5.(*Conn).CopyFrom(ctx Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) func github.com/jackc/pgx/v5.(*Conn).Deallocate(ctx Context, name string) error func github.com/jackc/pgx/v5.(*Conn).DeallocateAll(ctx Context) error func github.com/jackc/pgx/v5.(*Conn).Exec(ctx Context, sql string, arguments ...any) (pgconn.CommandTag, error) func github.com/jackc/pgx/v5.(*Conn).LoadType(ctx Context, typeName string) (*pgtype.Type, error) func github.com/jackc/pgx/v5.(*Conn).Ping(ctx Context) error func github.com/jackc/pgx/v5.(*Conn).Prepare(ctx Context, name, sql string) (sd *pgconn.StatementDescription, err error) func github.com/jackc/pgx/v5.(*Conn).Query(ctx Context, sql string, args ...any) (pgx.Rows, error) func github.com/jackc/pgx/v5.(*Conn).QueryRow(ctx Context, sql string, args ...any) pgx.Row func github.com/jackc/pgx/v5.(*Conn).SendBatch(ctx Context, b *pgx.Batch) (br pgx.BatchResults) func github.com/jackc/pgx/v5.(*Conn).WaitForNotification(ctx Context) (*pgconn.Notification, error) func github.com/jackc/pgx/v5.ConnectTracer.TraceConnectEnd(ctx Context, data pgx.TraceConnectEndData) func github.com/jackc/pgx/v5.ConnectTracer.TraceConnectStart(ctx Context, data pgx.TraceConnectStartData) Context func github.com/jackc/pgx/v5.CopyFromTracer.TraceCopyFromEnd(ctx Context, conn *pgx.Conn, data pgx.TraceCopyFromEndData) func github.com/jackc/pgx/v5.CopyFromTracer.TraceCopyFromStart(ctx Context, conn *pgx.Conn, data pgx.TraceCopyFromStartData) Context func github.com/jackc/pgx/v5.(*LargeObjects).Create(ctx Context, oid uint32) (uint32, error) func github.com/jackc/pgx/v5.(*LargeObjects).Open(ctx Context, oid uint32, mode pgx.LargeObjectMode) (*pgx.LargeObject, error) func github.com/jackc/pgx/v5.(*LargeObjects).Unlink(ctx Context, oid uint32) error func github.com/jackc/pgx/v5.NamedArgs.RewriteQuery(ctx Context, conn *pgx.Conn, sql string, args []any) (newSQL string, newArgs []any, err error) func github.com/jackc/pgx/v5.PrepareTracer.TracePrepareEnd(ctx Context, conn *pgx.Conn, data pgx.TracePrepareEndData) func github.com/jackc/pgx/v5.PrepareTracer.TracePrepareStart(ctx Context, conn *pgx.Conn, data pgx.TracePrepareStartData) Context func github.com/jackc/pgx/v5.QueryRewriter.RewriteQuery(ctx Context, conn *pgx.Conn, sql string, args []any) (newSQL string, newArgs []any, err error) func github.com/jackc/pgx/v5.QueryTracer.TraceQueryEnd(ctx Context, conn *pgx.Conn, data pgx.TraceQueryEndData) func github.com/jackc/pgx/v5.QueryTracer.TraceQueryStart(ctx Context, conn *pgx.Conn, data pgx.TraceQueryStartData) Context func github.com/jackc/pgx/v5.Tx.Begin(ctx Context) (pgx.Tx, error) func github.com/jackc/pgx/v5.Tx.Commit(ctx Context) error func github.com/jackc/pgx/v5.Tx.CopyFrom(ctx Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) func github.com/jackc/pgx/v5.Tx.Exec(ctx Context, sql string, arguments ...any) (commandTag pgconn.CommandTag, err error) func github.com/jackc/pgx/v5.Tx.Prepare(ctx Context, name, sql string) (*pgconn.StatementDescription, error) func github.com/jackc/pgx/v5.Tx.Query(ctx Context, sql string, args ...any) (pgx.Rows, error) func github.com/jackc/pgx/v5.Tx.QueryRow(ctx Context, sql string, args ...any) pgx.Row func github.com/jackc/pgx/v5.Tx.Rollback(ctx Context) error func github.com/jackc/pgx/v5.Tx.SendBatch(ctx Context, b *pgx.Batch) pgx.BatchResults func github.com/jackc/pgx/v5/pgconn.Connect(ctx Context, connString string) (*pgconn.PgConn, error) func github.com/jackc/pgx/v5/pgconn.ConnectConfig(octx Context, config *pgconn.Config) (pgConn *pgconn.PgConn, err error) func github.com/jackc/pgx/v5/pgconn.ConnectWithOptions(ctx Context, connString string, parseConfigOptions pgconn.ParseConfigOptions) (*pgconn.PgConn, error) func github.com/jackc/pgx/v5/pgconn.ValidateConnectTargetSessionAttrsPreferStandby(ctx Context, pgConn *pgconn.PgConn) error func github.com/jackc/pgx/v5/pgconn.ValidateConnectTargetSessionAttrsPrimary(ctx Context, pgConn *pgconn.PgConn) error func github.com/jackc/pgx/v5/pgconn.ValidateConnectTargetSessionAttrsReadOnly(ctx Context, pgConn *pgconn.PgConn) error func github.com/jackc/pgx/v5/pgconn.ValidateConnectTargetSessionAttrsReadWrite(ctx Context, pgConn *pgconn.PgConn) error func github.com/jackc/pgx/v5/pgconn.ValidateConnectTargetSessionAttrsStandby(ctx Context, pgConn *pgconn.PgConn) error func github.com/jackc/pgx/v5/pgconn.(*PgConn).CancelRequest(ctx Context) error func github.com/jackc/pgx/v5/pgconn.(*PgConn).Close(ctx Context) error func github.com/jackc/pgx/v5/pgconn.(*PgConn).CopyFrom(ctx Context, r io.Reader, sql string) (pgconn.CommandTag, error) func github.com/jackc/pgx/v5/pgconn.(*PgConn).CopyTo(ctx Context, w io.Writer, sql string) (pgconn.CommandTag, error) func github.com/jackc/pgx/v5/pgconn.(*PgConn).Exec(ctx Context, sql string) *pgconn.MultiResultReader func github.com/jackc/pgx/v5/pgconn.(*PgConn).ExecBatch(ctx Context, batch *pgconn.Batch) *pgconn.MultiResultReader func github.com/jackc/pgx/v5/pgconn.(*PgConn).ExecParams(ctx Context, sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats []int16, resultFormats []int16) *pgconn.ResultReader func github.com/jackc/pgx/v5/pgconn.(*PgConn).ExecPrepared(ctx Context, stmtName string, paramValues [][]byte, paramFormats []int16, resultFormats []int16) *pgconn.ResultReader func github.com/jackc/pgx/v5/pgconn.(*PgConn).Ping(ctx Context) error func github.com/jackc/pgx/v5/pgconn.(*PgConn).Prepare(ctx Context, name, sql string, paramOIDs []uint32) (*pgconn.StatementDescription, error) func github.com/jackc/pgx/v5/pgconn.(*PgConn).ReceiveMessage(ctx Context) (pgproto3.BackendMessage, error) func github.com/jackc/pgx/v5/pgconn.(*PgConn).StartPipeline(ctx Context) *pgconn.Pipeline func github.com/jackc/pgx/v5/pgconn.(*PgConn).SyncConn(ctx Context) error func github.com/jackc/pgx/v5/pgconn.(*PgConn).WaitForNotification(ctx Context) error func github.com/jackc/pgx/v5/pgconn/internal/ctxwatch.(*ContextWatcher).Watch(ctx Context) func github.com/jackc/pgx/v5/stdlib.RandomizeHostOrderFunc(ctx Context, connConfig *pgx.ConnConfig) error func github.com/jackc/pgx/v5/stdlib.(*Conn).BeginTx(ctx Context, opts driver.TxOptions) (driver.Tx, error) func github.com/jackc/pgx/v5/stdlib.(*Conn).ExecContext(ctx Context, query string, argsV []driver.NamedValue) (driver.Result, error) func github.com/jackc/pgx/v5/stdlib.(*Conn).Ping(ctx Context) error func github.com/jackc/pgx/v5/stdlib.(*Conn).PrepareContext(ctx Context, query string) (driver.Stmt, error) func github.com/jackc/pgx/v5/stdlib.(*Conn).QueryContext(ctx Context, query string, argsV []driver.NamedValue) (driver.Rows, error) func github.com/jackc/pgx/v5/stdlib.(*Conn).ResetSession(ctx Context) error func github.com/jackc/pgx/v5/stdlib.(*Stmt).ExecContext(ctx Context, argsV []driver.NamedValue) (driver.Result, error) func github.com/jackc/pgx/v5/stdlib.(*Stmt).QueryContext(ctx Context, argsV []driver.NamedValue) (driver.Rows, error) func github.com/masterzen/winrm.(*Client).RunPSWithContextWithString(ctx Context, command string, stdin string) (string, string, int, error) func github.com/masterzen/winrm.(*Client).RunWithContext(ctx Context, command string, stdout io.Writer, stderr io.Writer) (int, error) func github.com/masterzen/winrm.(*Client).RunWithContextWithInput(ctx Context, command string, stdout, stderr io.Writer, stdin io.Reader) (int, error) func github.com/masterzen/winrm.(*Client).RunWithContextWithString(ctx Context, command string, stdin string) (string, string, int, error) func github.com/masterzen/winrm.(*Shell).ExecuteWithContext(ctx Context, command string, arguments ...string) (*winrm.Command, error) func github.com/Nerzal/gocloak/v13.WithTracer(ctx Context, tracer opentracing.Tracer) Context func github.com/Nerzal/gocloak/v13.(*GoCloak).AddClientRoleComposite(ctx Context, token, realm, roleID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddClientRolesToGroup(ctx Context, token, realm, idOfClient, groupID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddClientRolesToUser(ctx Context, token, realm, idOfClient, userID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddClientRoleToGroup(ctx Context, token, realm, idOfClient, groupID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddClientRoleToUser(ctx Context, token, realm, idOfClient, userID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddDefaultGroup(ctx Context, token, realm, groupID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddDefaultScopeToClient(ctx Context, token, realm, idOfClient, scopeID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddOptionalScopeToClient(ctx Context, token, realm, idOfClient, scopeID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddRealmRoleComposite(ctx Context, token, realm, roleName string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddRealmRoleToGroup(ctx Context, token, realm, groupID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddRealmRoleToUser(ctx Context, token, realm, userID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).AddUserToGroup(ctx Context, token, realm, userID, groupID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).ClearKeysCache(ctx Context, token, realm string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).ClearRealmCache(ctx Context, token, realm string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).ClearUserCache(ctx Context, token, realm string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateAuthenticationExecution(ctx Context, token, realm, flow string, execution gocloak.CreateAuthenticationExecutionRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateAuthenticationExecutionFlow(ctx Context, token, realm, flow string, executionFlow gocloak.CreateAuthenticationExecutionFlowRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateAuthenticationFlow(ctx Context, token, realm string, flow gocloak.AuthenticationFlowRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateChildGroup(ctx Context, token, realm, groupID string, group gocloak.Group) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClient(ctx Context, accessToken, realm string, newClient gocloak.Client) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientProtocolMapper(ctx Context, token, realm, idOfClient string, mapper gocloak.ProtocolMapperRepresentation) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientRepresentation(ctx Context, token, realm string, newClient gocloak.Client) (*gocloak.Client, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientRole(ctx Context, token, realm, idOfClient string, role gocloak.Role) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientScope(ctx Context, token, realm string, scope gocloak.ClientScope) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientScopeMappingsClientRoles(ctx Context, token, realm, idOfClient, idOfSelectedClient string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientScopeMappingsRealmRoles(ctx Context, token, realm, idOfClient string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientScopeProtocolMapper(ctx Context, token, realm, scopeID string, protocolMapper gocloak.ProtocolMappers) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientScopesScopeMappingsClientRoles(ctx Context, token, realm, idOfClientScope, idOfClient string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateClientScopesScopeMappingsRealmRoles(ctx Context, token, realm, clientScopeID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateComponent(ctx Context, token, realm string, component gocloak.Component) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateGroup(ctx Context, token, realm string, group gocloak.Group) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateIdentityProvider(ctx Context, token string, realm string, providerRep gocloak.IdentityProviderRepresentation) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateIdentityProviderMapper(ctx Context, token, realm, alias string, mapper gocloak.IdentityProviderMapper) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreatePermission(ctx Context, token, realm, idOfClient string, permission gocloak.PermissionRepresentation) (*gocloak.PermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreatePermissionTicket(ctx Context, token, realm string, permissions []gocloak.CreatePermissionTicketParams) (*gocloak.PermissionTicketResponseRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreatePolicy(ctx Context, token, realm, idOfClient string, policy gocloak.PolicyRepresentation) (*gocloak.PolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateRealm(ctx Context, token string, realm gocloak.RealmRepresentation) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateRealmRole(ctx Context, token string, realm string, role gocloak.Role) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateResource(ctx Context, token, realm string, idOfClient string, resource gocloak.ResourceRepresentation) (*gocloak.ResourceRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateResourceClient(ctx Context, token, realm string, resource gocloak.ResourceRepresentation) (*gocloak.ResourceRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateResourcePolicy(ctx Context, token, realm, resourceID string, policy gocloak.ResourcePolicyRepresentation) (*gocloak.ResourcePolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateScope(ctx Context, token, realm, idOfClient string, scope gocloak.ScopeRepresentation) (*gocloak.ScopeRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateUser(ctx Context, token, realm string, user gocloak.User) (string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).CreateUserFederatedIdentity(ctx Context, token, realm, userID, providerID string, federatedIdentityRep gocloak.FederatedIdentityRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DecodeAccessToken(ctx Context, accessToken, realm string) (*jwt.Token, *jwt.MapClaims, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).DecodeAccessTokenCustomClaims(ctx Context, accessToken, realm string, claims jwt.Claims) (*jwt.Token, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteAuthenticationExecution(ctx Context, token, realm, executionID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteAuthenticationFlow(ctx Context, token, realm, flowID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClient(ctx Context, token, realm, idOfClient string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientProtocolMapper(ctx Context, token, realm, idOfClient, mapperID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientRepresentation(ctx Context, accessToken, realm, clientID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientRole(ctx Context, token, realm, idOfClient, roleName string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientRoleComposite(ctx Context, token, realm, roleID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientRoleFromGroup(ctx Context, token, realm, idOfClient, groupID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientRoleFromUser(ctx Context, token, realm, idOfClient, userID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientRolesFromUser(ctx Context, token, realm, idOfClient, userID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientScope(ctx Context, token, realm, scopeID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientScopeMappingsClientRoles(ctx Context, token, realm, idOfClient, idOfSelectedClient string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientScopeMappingsRealmRoles(ctx Context, token, realm, idOfClient string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientScopeProtocolMapper(ctx Context, token, realm, scopeID, protocolMapperID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientScopesScopeMappingsClientRoles(ctx Context, token, realm, idOfClientScope, idOfClient string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteClientScopesScopeMappingsRealmRoles(ctx Context, token, realm, clientScopeID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteComponent(ctx Context, token, realm, componentID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteCredentials(ctx Context, token, realm, userID, credentialID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteGroup(ctx Context, token, realm, groupID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteIdentityProvider(ctx Context, token, realm, alias string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteIdentityProviderMapper(ctx Context, token, realm, alias, mapperID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeletePermission(ctx Context, token, realm, idOfClient, permissionID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeletePolicy(ctx Context, token, realm, idOfClient, policyID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteRealm(ctx Context, token, realm string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteRealmRole(ctx Context, token, realm, roleName string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteRealmRoleComposite(ctx Context, token, realm, roleName string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteRealmRoleFromGroup(ctx Context, token, realm, groupID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteRealmRoleFromUser(ctx Context, token, realm, userID string, roles []gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteRequiredAction(ctx Context, token string, realm string, alias string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteResource(ctx Context, token, realm, idOfClient, resourceID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteResourceClient(ctx Context, token, realm, resourceID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteResourcePolicy(ctx Context, token, realm, permissionID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteScope(ctx Context, token, realm, idOfClient, scopeID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteUser(ctx Context, token, realm, userID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteUserFederatedIdentity(ctx Context, token, realm, userID, providerID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteUserFromGroup(ctx Context, token, realm, userID, groupID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DeleteUserPermission(ctx Context, token, realm, ticketID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).DisableAllCredentialsByType(ctx Context, token, realm, userID string, types []string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).ExecuteActionsEmail(ctx Context, token, realm string, params gocloak.ExecuteActionsEmail) error func github.com/Nerzal/gocloak/v13.(*GoCloak).ExportIDPPublicBrokerConfig(ctx Context, token, realm, alias string) (*string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAdapterConfiguration(ctx Context, accessToken, realm, clientID string) (*gocloak.AdapterConfiguration, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAuthenticationExecutions(ctx Context, token, realm, flow string) ([]*gocloak.ModifyAuthenticationExecutionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAuthenticationFlow(ctx Context, token, realm string, authenticationFlowID string) (*gocloak.AuthenticationFlowRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAuthenticationFlows(ctx Context, token, realm string) ([]*gocloak.AuthenticationFlowRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAuthorizationPolicyAssociatedPolicies(ctx Context, token, realm, idOfClient, policyID string) ([]*gocloak.PolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAuthorizationPolicyResources(ctx Context, token, realm, idOfClient, policyID string) ([]*gocloak.PolicyResourceRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAuthorizationPolicyScopes(ctx Context, token, realm, idOfClient, policyID string) ([]*gocloak.PolicyScopeRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAvailableClientRolesByGroupID(ctx Context, token, realm, idOfClient, groupID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAvailableClientRolesByUserID(ctx Context, token, realm, idOfClient, userID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAvailableRealmRolesByGroupID(ctx Context, token, realm, groupID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetAvailableRealmRolesByUserID(ctx Context, token, realm, userID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCerts(ctx Context, realm string) (*gocloak.CertResponse, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClient(ctx Context, token, realm, idOfClient string) (*gocloak.Client, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientManagementPermissions(ctx Context, token, realm string, idOfClient string) (*gocloak.ManagementPermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientOfflineSessions(ctx Context, token, realm, idOfClient string, params ...gocloak.GetClientUserSessionsParams) ([]*gocloak.UserSessionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientRepresentation(ctx Context, accessToken, realm, clientID string) (*gocloak.Client, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientRole(ctx Context, token, realm, idOfClient, roleName string) (*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientRoleByID(ctx Context, token, realm, roleID string) (*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientRoles(ctx Context, token, realm, idOfClient string, params gocloak.GetRoleParams) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientRolesByGroupID(ctx Context, token, realm, idOfClient, groupID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientRolesByUserID(ctx Context, token, realm, idOfClient, userID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClients(ctx Context, token, realm string, params gocloak.GetClientsParams) ([]*gocloak.Client, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScope(ctx Context, token, realm, scopeID string) (*gocloak.ClientScope, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopeMappings(ctx Context, token, realm, idOfClient string) (*gocloak.MappingsRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopeMappingsClientRoles(ctx Context, token, realm, idOfClient, idOfSelectedClient string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopeMappingsClientRolesAvailable(ctx Context, token, realm, idOfClient, idOfSelectedClient string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopeMappingsRealmRoles(ctx Context, token, realm, idOfClient string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopeMappingsRealmRolesAvailable(ctx Context, token, realm, idOfClient string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopeProtocolMapper(ctx Context, token, realm, scopeID, protocolMapperID string) (*gocloak.ProtocolMappers, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopeProtocolMappers(ctx Context, token, realm, scopeID string) ([]*gocloak.ProtocolMappers, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopes(ctx Context, token, realm string) ([]*gocloak.ClientScope, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopesScopeMappingsClientRoles(ctx Context, token, realm, idOfClientScope, idOfClient string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopesScopeMappingsClientRolesAvailable(ctx Context, token, realm, idOfClientScope, idOfClient string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopesScopeMappingsRealmRoles(ctx Context, token, realm, clientScopeID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientScopesScopeMappingsRealmRolesAvailable(ctx Context, token, realm, clientScopeID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientsDefaultScopes(ctx Context, token, realm, idOfClient string) ([]*gocloak.ClientScope, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientSecret(ctx Context, token, realm, idOfClient string) (*gocloak.CredentialRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientServiceAccount(ctx Context, token, realm, idOfClient string) (*gocloak.User, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientsOptionalScopes(ctx Context, token, realm, idOfClient string) ([]*gocloak.ClientScope, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetClientUserSessions(ctx Context, token, realm, idOfClient string, params ...gocloak.GetClientUserSessionsParams) ([]*gocloak.UserSessionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetComponent(ctx Context, token, realm string, componentID string) (*gocloak.Component, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetComponents(ctx Context, token, realm string) ([]*gocloak.Component, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetComponentsWithParams(ctx Context, token, realm string, params gocloak.GetComponentsParams) ([]*gocloak.Component, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeClientRolesByGroupID(ctx Context, token, realm, idOfClient, groupID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeClientRolesByRoleID(ctx Context, token, realm, idOfClient, roleID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeClientRolesByUserID(ctx Context, token, realm, idOfClient, userID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeRealmRoles(ctx Context, token, realm, roleName string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeRealmRolesByGroupID(ctx Context, token, realm, groupID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeRealmRolesByRoleID(ctx Context, token, realm, roleID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeRealmRolesByUserID(ctx Context, token, realm, userID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCompositeRolesByRoleID(ctx Context, token, realm, roleID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetConfiguredUserStorageCredentialTypes(ctx Context, token, realm, userID string) ([]string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCredentialRegistrators(ctx Context, token, realm string) ([]string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetCredentials(ctx Context, token, realm, userID string) ([]*gocloak.CredentialRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetDefaultDefaultClientScopes(ctx Context, token, realm string) ([]*gocloak.ClientScope, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetDefaultGroups(ctx Context, token, realm string) ([]*gocloak.Group, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetDefaultOptionalClientScopes(ctx Context, token, realm string) ([]*gocloak.ClientScope, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetDependentPermissions(ctx Context, token, realm, idOfClient, policyID string) ([]*gocloak.PermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetEvents(ctx Context, token string, realm string, params gocloak.GetEventsParams) ([]*gocloak.EventRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroup(ctx Context, token, realm, groupID string) (*gocloak.Group, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroupByPath(ctx Context, token, realm, groupPath string) (*gocloak.Group, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroupManagementPermissions(ctx Context, token, realm string, idOfGroup string) (*gocloak.ManagementPermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroupMembers(ctx Context, token, realm, groupID string, params gocloak.GetGroupsParams) ([]*gocloak.User, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroups(ctx Context, token, realm string, params gocloak.GetGroupsParams) ([]*gocloak.Group, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroupsByClientRole(ctx Context, token, realm string, roleName string, clientID string) ([]*gocloak.Group, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroupsByRole(ctx Context, token, realm string, roleName string) ([]*gocloak.Group, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetGroupsCount(ctx Context, token, realm string, params gocloak.GetGroupsParams) (int, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetIdentityProvider(ctx Context, token, realm, alias string) (*gocloak.IdentityProviderRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetIdentityProviderMapper(ctx Context, token string, realm string, alias string, mapperID string) (*gocloak.IdentityProviderMapper, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetIdentityProviderMapperByID(ctx Context, token, realm, alias, mapperID string) (*gocloak.IdentityProviderMapper, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetIdentityProviderMappers(ctx Context, token, realm, alias string) ([]*gocloak.IdentityProviderMapper, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetIdentityProviders(ctx Context, token, realm string) ([]*gocloak.IdentityProviderRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetIssuer(ctx Context, realm string) (*gocloak.IssuerResponse, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetKeyStoreConfig(ctx Context, token, realm string) (*gocloak.KeyStoreConfig, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetPermission(ctx Context, token, realm, idOfClient, permissionID string) (*gocloak.PermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetPermissionResources(ctx Context, token, realm, idOfClient, permissionID string) ([]*gocloak.PermissionResource, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetPermissions(ctx Context, token, realm, idOfClient string, params gocloak.GetPermissionParams) ([]*gocloak.PermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetPermissionScope(ctx Context, token, realm, idOfClient string, idOfScope string) (*gocloak.PolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetPermissionScopes(ctx Context, token, realm, idOfClient, permissionID string) ([]*gocloak.PermissionScope, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetPolicies(ctx Context, token, realm, idOfClient string, params gocloak.GetPolicyParams) ([]*gocloak.PolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetPolicy(ctx Context, token, realm, idOfClient, policyID string) (*gocloak.PolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRawUserInfo(ctx Context, accessToken, realm string) (map[string]interface{}, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRealm(ctx Context, token, realm string) (*gocloak.RealmRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRealmRole(ctx Context, token, realm, roleName string) (*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRealmRoleByID(ctx Context, token, realm, roleID string) (*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRealmRoles(ctx Context, token, realm string, params gocloak.GetRoleParams) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRealmRolesByGroupID(ctx Context, token, realm, groupID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRealmRolesByUserID(ctx Context, token, realm, userID string) ([]*gocloak.Role, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRealms(ctx Context, token string) ([]*gocloak.RealmRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequest(ctx Context) *resty.Request func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequestingPartyPermissionDecision(ctx Context, token, realm string, options gocloak.RequestingPartyTokenOptions) (*gocloak.RequestingPartyPermissionDecision, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequestingPartyPermissions(ctx Context, token, realm string, options gocloak.RequestingPartyTokenOptions) (*[]gocloak.RequestingPartyPermission, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequestingPartyToken(ctx Context, token, realm string, options gocloak.RequestingPartyTokenOptions) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequestWithBasicAuth(ctx Context, clientID, clientSecret string) *resty.Request func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequestWithBearerAuth(ctx Context, token string) *resty.Request func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequestWithBearerAuthNoCache(ctx Context, token string) *resty.Request func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequestWithBearerAuthXMLHeader(ctx Context, token string) *resty.Request func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequiredAction(ctx Context, token string, realm string, alias string) (*gocloak.RequiredActionProviderRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRequiredActions(ctx Context, token string, realm string) ([]*gocloak.RequiredActionProviderRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetResource(ctx Context, token, realm, idOfClient, resourceID string) (*gocloak.ResourceRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetResourceClient(ctx Context, token, realm, resourceID string) (*gocloak.ResourceRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetResourcePolicies(ctx Context, token, realm string, params gocloak.GetResourcePoliciesParams) ([]*gocloak.ResourcePolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetResourcePolicy(ctx Context, token, realm, permissionID string) (*gocloak.ResourcePolicyRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetResources(ctx Context, token, realm, idOfClient string, params gocloak.GetResourceParams) ([]*gocloak.ResourceRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetResourcesClient(ctx Context, token, realm string, params gocloak.GetResourceParams) ([]*gocloak.ResourceRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetResourceServer(ctx Context, token, realm, idOfClient string) (*gocloak.ResourceServerRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRoleMappingByGroupID(ctx Context, token, realm, groupID string) (*gocloak.MappingsRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetRoleMappingByUserID(ctx Context, token, realm, userID string) (*gocloak.MappingsRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetScope(ctx Context, token, realm, idOfClient, scopeID string) (*gocloak.ScopeRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetScopes(ctx Context, token, realm, idOfClient string, params gocloak.GetScopeParams) ([]*gocloak.ScopeRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetServerInfo(ctx Context, accessToken string) (*gocloak.ServerInfoRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetToken(ctx Context, realm string, options gocloak.TokenOptions) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserBruteForceDetectionStatus(ctx Context, accessToken, realm, userID string) (*gocloak.BruteForceStatus, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserByID(ctx Context, accessToken, realm, userID string) (*gocloak.User, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserCount(ctx Context, token string, realm string, params gocloak.GetUsersParams) (int, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserFederatedIdentities(ctx Context, token, realm, userID string) ([]*gocloak.FederatedIdentityRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserGroups(ctx Context, token, realm, userID string, params gocloak.GetGroupsParams) ([]*gocloak.Group, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserInfo(ctx Context, accessToken, realm string) (*gocloak.UserInfo, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserOfflineSessionsForClient(ctx Context, token, realm, userID, idOfClient string) ([]*gocloak.UserSessionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserPermissions(ctx Context, token, realm string, params gocloak.GetUserPermissionParams) ([]*gocloak.PermissionGrantResponseRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUsers(ctx Context, token, realm string, params gocloak.GetUsersParams) ([]*gocloak.User, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUsersByClientRoleName(ctx Context, token, realm, idOfClient, roleName string, params gocloak.GetUsersByRoleParams) ([]*gocloak.User, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUsersByRoleName(ctx Context, token, realm, roleName string, params gocloak.GetUsersByRoleParams) ([]*gocloak.User, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GetUserSessions(ctx Context, token, realm, userID string) ([]*gocloak.UserSessionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).GrantUserPermission(ctx Context, token, realm string, permission gocloak.PermissionGrantParams) (*gocloak.PermissionGrantResponseRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).ImportIdentityProviderConfig(ctx Context, token, realm, fromURL, providerID string) (map[string]string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).ImportIdentityProviderConfigFromFile(ctx Context, token, realm, providerID, fileName string, fileBody io.Reader) (map[string]string, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).Login(ctx Context, clientID, clientSecret, realm, username, password string) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).LoginAdmin(ctx Context, username, password, realm string) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).LoginClient(ctx Context, clientID, clientSecret, realm string, scopes ...string) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).LoginClientSignedJWT(ctx Context, clientID, realm string, key interface{}, signedMethod jwt.SigningMethod, expiresAt *jwt.NumericDate) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).LoginClientTokenExchange(ctx Context, clientID, token, clientSecret, realm, targetClient, userID string) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).LoginOtp(ctx Context, clientID, clientSecret, realm, username, password, totp string) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).Logout(ctx Context, clientID, clientSecret, realm, refreshToken string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).LogoutAllSessions(ctx Context, accessToken, realm, userID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).LogoutPublicClient(ctx Context, clientID, realm, accessToken, refreshToken string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).LogoutUserSession(ctx Context, accessToken, realm, session string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).MoveCredentialBehind(ctx Context, token, realm, userID, credentialID, newPreviousCredentialID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).MoveCredentialToFirst(ctx Context, token, realm, userID, credentialID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).RefreshToken(ctx Context, refreshToken, clientID, clientSecret, realm string) (*gocloak.JWT, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).RegenerateClientSecret(ctx Context, token, realm, idOfClient string) (*gocloak.CredentialRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).RegisterRequiredAction(ctx Context, token string, realm string, requiredAction gocloak.RequiredActionProviderRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).RemoveDefaultGroup(ctx Context, token, realm, groupID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).RemoveDefaultScopeFromClient(ctx Context, token, realm, idOfClient, scopeID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).RemoveOptionalScopeFromClient(ctx Context, token, realm, idOfClient, scopeID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).RetrospectToken(ctx Context, accessToken, clientID, clientSecret, realm string) (*gocloak.IntroSpectTokenResult, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).RevokeToken(ctx Context, realm, clientID, clientSecret, refreshToken string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).RevokeUserConsents(ctx Context, accessToken, realm, userID, clientID string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).SendVerifyEmail(ctx Context, token, userID, realm string, params ...gocloak.SendVerificationMailParams) error func github.com/Nerzal/gocloak/v13.(*GoCloak).SetPassword(ctx Context, token, userID, realm, password string, temporary bool) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateAuthenticationExecution(ctx Context, token, realm, flow string, execution gocloak.ModifyAuthenticationExecutionRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateAuthenticationFlow(ctx Context, token, realm string, flow gocloak.AuthenticationFlowRepresentation, authenticationFlowID string) (*gocloak.AuthenticationFlowRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateClient(ctx Context, token, realm string, updatedClient gocloak.Client) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateClientManagementPermissions(ctx Context, accessToken, realm string, idOfClient string, managementPermissions gocloak.ManagementPermissionRepresentation) (*gocloak.ManagementPermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateClientProtocolMapper(ctx Context, token, realm, idOfClient, mapperID string, mapper gocloak.ProtocolMapperRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateClientRepresentation(ctx Context, accessToken, realm string, updatedClient gocloak.Client) (*gocloak.Client, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateClientScope(ctx Context, token, realm string, scope gocloak.ClientScope) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateClientScopeProtocolMapper(ctx Context, token, realm, scopeID string, protocolMapper gocloak.ProtocolMappers) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateComponent(ctx Context, token, realm string, component gocloak.Component) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateCredentialUserLabel(ctx Context, token, realm, userID, credentialID, userLabel string) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateGroup(ctx Context, token, realm string, updatedGroup gocloak.Group) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateGroupManagementPermissions(ctx Context, accessToken, realm string, idOfGroup string, managementPermissions gocloak.ManagementPermissionRepresentation) (*gocloak.ManagementPermissionRepresentation, error) func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateIdentityProvider(ctx Context, token, realm, alias string, providerRep gocloak.IdentityProviderRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateIdentityProviderMapper(ctx Context, token, realm, alias string, mapper gocloak.IdentityProviderMapper) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdatePermission(ctx Context, token, realm, idOfClient string, permission gocloak.PermissionRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdatePermissionScope(ctx Context, token, realm, idOfClient string, idOfScope string, policy gocloak.PolicyRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdatePolicy(ctx Context, token, realm, idOfClient string, policy gocloak.PolicyRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateRealm(ctx Context, token string, realm gocloak.RealmRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateRealmRole(ctx Context, token, realm, roleName string, role gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateRealmRoleByID(ctx Context, token, realm, roleID string, role gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateRequiredAction(ctx Context, token string, realm string, requiredAction gocloak.RequiredActionProviderRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateResource(ctx Context, token, realm, idOfClient string, resource gocloak.ResourceRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateResourceClient(ctx Context, token, realm string, resource gocloak.ResourceRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateResourcePolicy(ctx Context, token, realm, permissionID string, policy gocloak.ResourcePolicyRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateRole(ctx Context, token, realm, idOfClient string, role gocloak.Role) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateScope(ctx Context, token, realm, idOfClient string, scope gocloak.ScopeRepresentation) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateUser(ctx Context, token, realm string, user gocloak.User) error func github.com/Nerzal/gocloak/v13.(*GoCloak).UpdateUserPermission(ctx Context, token, realm string, permission gocloak.PermissionGrantParams) (*gocloak.PermissionGrantResponseRepresentation, error) func github.com/opentracing/opentracing-go.ContextWithSpan(ctx Context, span opentracing.Span) Context func github.com/opentracing/opentracing-go.SpanFromContext(ctx Context) opentracing.Span func github.com/opentracing/opentracing-go.StartSpanFromContext(ctx Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, Context) func github.com/opentracing/opentracing-go.StartSpanFromContextWithTracer(ctx Context, tracer opentracing.Tracer, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, Context) func github.com/opentracing/opentracing-go.TracerContextWithSpanExtension.ContextWithSpanHook(ctx Context, span opentracing.Span) Context func github.com/pkg/sftp.(*Request).WithContext(ctx Context) *sftp.Request func github.com/valyala/fasthttp.Resolver.LookupIPAddr(Context, string) (names []net.IPAddr, err error) func github.com/valyala/fasthttp.(*Server).ShutdownWithContext(ctx Context) (err error) func gorm.io/gorm.ConnPool.ExecContext(ctx Context, query string, args ...interface{}) (sql.Result, error) func gorm.io/gorm.ConnPool.PrepareContext(ctx Context, query string) (*sql.Stmt, error) func gorm.io/gorm.ConnPool.QueryContext(ctx Context, query string, args ...interface{}) (*sql.Rows, error) func gorm.io/gorm.ConnPool.QueryRowContext(ctx Context, query string, args ...interface{}) *sql.Row func gorm.io/gorm.ConnPoolBeginner.BeginTx(ctx Context, opts *sql.TxOptions) (gorm.ConnPool, error) func gorm.io/gorm.(*DB).WithContext(ctx Context) *gorm.DB func gorm.io/gorm.ParamsFilter.ParamsFilter(ctx Context, sql string, params ...interface{}) (string, []interface{}) func gorm.io/gorm.(*PreparedStmtDB).BeginTx(ctx Context, opt *sql.TxOptions) (gorm.ConnPool, error) func gorm.io/gorm.(*PreparedStmtDB).ExecContext(ctx Context, query string, args ...interface{}) (result sql.Result, err error) func gorm.io/gorm.(*PreparedStmtDB).QueryContext(ctx Context, query string, args ...interface{}) (rows *sql.Rows, err error) func gorm.io/gorm.(*PreparedStmtDB).QueryRowContext(ctx Context, query string, args ...interface{}) *sql.Row func gorm.io/gorm.(*PreparedStmtTX).ExecContext(ctx Context, query string, args ...interface{}) (result sql.Result, err error) func gorm.io/gorm.(*PreparedStmtTX).QueryContext(ctx Context, query string, args ...interface{}) (rows *sql.Rows, err error) func gorm.io/gorm.(*PreparedStmtTX).QueryRowContext(ctx Context, query string, args ...interface{}) *sql.Row func gorm.io/gorm.Tx.ExecContext(ctx Context, query string, args ...interface{}) (sql.Result, error) func gorm.io/gorm.Tx.PrepareContext(ctx Context, query string) (*sql.Stmt, error) func gorm.io/gorm.Tx.QueryContext(ctx Context, query string, args ...interface{}) (*sql.Rows, error) func gorm.io/gorm.Tx.QueryRowContext(ctx Context, query string, args ...interface{}) *sql.Row func gorm.io/gorm.Tx.StmtContext(ctx Context, stmt *sql.Stmt) *sql.Stmt func gorm.io/gorm.TxBeginner.BeginTx(ctx Context, opts *sql.TxOptions) (*sql.Tx, error) func gorm.io/gorm.Valuer.GormValue(Context, *gorm.DB) clause.Expr func gorm.io/gorm/logger.Interface.Error(Context, string, ...interface{}) func gorm.io/gorm/logger.Interface.Info(Context, string, ...interface{}) func gorm.io/gorm/logger.Interface.Trace(ctx Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) func gorm.io/gorm/logger.Interface.Warn(Context, string, ...interface{}) func gorm.io/gorm/schema.GetIdentityFieldValuesMap(ctx Context, reflectValue reflect.Value, fields []*schema.Field) (map[string][]reflect.Value, [][]interface{}) func gorm.io/gorm/schema.GetIdentityFieldValuesMapFromValues(ctx Context, values []interface{}, fields []*schema.Field) (map[string][]reflect.Value, [][]interface{}) func gorm.io/gorm/schema.GetRelationsValues(ctx Context, reflectValue reflect.Value, rels []*schema.Relationship) (reflectResults reflect.Value) func gorm.io/gorm/schema.GobSerializer.Scan(ctx Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error) func gorm.io/gorm/schema.GobSerializer.Value(ctx Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error) func gorm.io/gorm/schema.JSONSerializer.Scan(ctx Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error) func gorm.io/gorm/schema.JSONSerializer.Value(ctx Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error) func gorm.io/gorm/schema.(*Relationship).ToQueryConditions(ctx Context, reflectValue reflect.Value) (conds []clause.Expression) func gorm.io/gorm/schema.SerializerInterface.Scan(ctx Context, field *schema.Field, dst reflect.Value, dbValue interface{}) error func gorm.io/gorm/schema.SerializerInterface.Value(ctx Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error) func gorm.io/gorm/schema.SerializerValuerInterface.Value(ctx Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error) func gorm.io/gorm/schema.UnixSecondSerializer.Scan(ctx Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error) func gorm.io/gorm/schema.UnixSecondSerializer.Value(ctx Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (result interface{}, err error) func net.(*Dialer).DialContext(ctx Context, network, address string) (net.Conn, error) func net.(*ListenConfig).Listen(ctx Context, network, address string) (net.Listener, error) func net.(*ListenConfig).ListenPacket(ctx Context, network, address string) (net.PacketConn, error) func net.(*Resolver).LookupAddr(ctx Context, addr string) ([]string, error) func net.(*Resolver).LookupCNAME(ctx Context, host string) (string, error) func net.(*Resolver).LookupHost(ctx Context, host string) (addrs []string, err error) func net.(*Resolver).LookupIP(ctx Context, network, host string) ([]net.IP, error) func net.(*Resolver).LookupIPAddr(ctx Context, host string) ([]net.IPAddr, error) func net.(*Resolver).LookupMX(ctx Context, name string) ([]*net.MX, error) func net.(*Resolver).LookupNetIP(ctx Context, network, host string) ([]netip.Addr, error) func net.(*Resolver).LookupNS(ctx Context, name string) ([]*net.NS, error) func net.(*Resolver).LookupPort(ctx Context, network, service string) (port int, err error) func net.(*Resolver).LookupSRV(ctx Context, service, proto, name string) (string, []*net.SRV, error) func net.(*Resolver).LookupTXT(ctx Context, name string) ([]string, error) func net/http.NewRequestWithContext(ctx Context, method, url string, body io.Reader) (*http.Request, error) func net/http.(*Request).Clone(ctx Context) *http.Request func net/http.(*Request).WithContext(ctx Context) *http.Request func net/http.(*Server).Shutdown(ctx Context) error func net/http/httptrace.ContextClientTrace(ctx Context) *httptrace.ClientTrace func net/http/httptrace.WithClientTrace(ctx Context, trace *httptrace.ClientTrace) Context func os/exec.CommandContext(ctx Context, name string, arg ...string) *exec.Cmd func runtime/trace.Log(ctx Context, category, message string) func runtime/trace.Logf(ctx Context, category, format string, args ...any) func runtime/trace.NewTask(pctx Context, taskType string) (ctx Context, task *trace.Task) func runtime/trace.StartRegion(ctx Context, regionType string) *trace.Region func runtime/trace.WithRegion(ctx Context, regionType string, fn func()) var github.com/avast/retry-go.DefaultContext
Package-Level Functions (total 12)
AfterFunc arranges to call f in its own goroutine after ctx is done (cancelled or timed out). If ctx is already done, AfterFunc calls f immediately in its own goroutine. Multiple calls to AfterFunc on a context operate independently; one does not replace another. Calling the returned stop function stops the association of ctx with f. It returns true if the call stopped f from being run. If stop returns false, either the context is done and f has been started in its own goroutine; or f was already stopped. The stop function does not wait for f to complete before returning. If the caller needs to know whether f is completed, it must coordinate with f explicitly. If ctx has a "AfterFunc(func()) func() bool" method, AfterFunc will use it to schedule the call.
Background returns a non-nil, empty [Context]. It is never canceled, has no values, and has no deadline. It is typically used by the main function, initialization, and tests, and as the top-level Context for incoming requests.
Cause returns a non-nil error explaining why c was canceled. The first cancellation of c or one of its parents sets the cause. If that cancellation happened via a call to CancelCauseFunc(err), then [Cause] returns err. Otherwise Cause(c) returns the same value as c.Err(). Cause returns nil if c has not been canceled yet.
TODO returns a non-nil, empty [Context]. Code should use context.TODO when it's unclear which Context to use or it is not yet available (because the surrounding function has not yet been extended to accept a Context parameter).
WithCancel returns a copy of parent with a new Done channel. The returned context's Done channel is closed when the returned cancel function is called or when the parent context's Done channel is closed, whichever happens first. Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this Context complete.
WithCancelCause behaves like [WithCancel] but returns a [CancelCauseFunc] instead of a [CancelFunc]. Calling cancel with a non-nil error (the "cause") records that error in ctx; it can then be retrieved using Cause(ctx). Calling cancel with nil sets the cause to Canceled. Example use: ctx, cancel := context.WithCancelCause(parent) cancel(myError) ctx.Err() // returns context.Canceled context.Cause(ctx) // returns myError
WithDeadline returns a copy of the parent context with the deadline adjusted to be no later than d. If the parent's deadline is already earlier than d, WithDeadline(parent, d) is semantically equivalent to parent. The returned [Context.Done] channel is closed when the deadline expires, when the returned cancel function is called, or when the parent context's Done channel is closed, whichever happens first. Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this [Context] complete.
WithDeadlineCause behaves like [WithDeadline] but also sets the cause of the returned Context when the deadline is exceeded. The returned [CancelFunc] does not set the cause.
WithoutCancel returns a copy of parent that is not canceled when parent is canceled. The returned context returns no Deadline or Err, and its Done channel is nil. Calling [Cause] on the returned context returns nil.
WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this [Context] complete: func slowOperationWithTimeout(ctx context.Context) (Result, error) { ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) defer cancel() // releases resources if slowOperation completes before timeout elapses return slowOperation(ctx) }
WithTimeoutCause behaves like [WithTimeout] but also sets the cause of the returned Context when the timeout expires. The returned [CancelFunc] does not set the cause.
WithValue returns a copy of parent in which the value associated with key is val. Use context Values only for request-scoped data that transits processes and APIs, not for passing optional parameters to functions. The provided key must be comparable and should not be of type string or any other built-in type to avoid collisions between packages using context. Users of WithValue should define their own types for keys. To avoid allocating when assigning to an interface{}, context keys often have concrete type struct{}. Alternatively, exported context key variables' static type should be a pointer or interface.
Package-Level Variables (total 2)
Canceled is the error returned by [Context.Err] when the context is canceled.
DeadlineExceeded is the error returned by [Context.Err] when the context's deadline passes.