contant

package
v0.0.0-...-7c02c66 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTClaimsCtxType = &jwt.MyCustomClaims{}

Functions

This section is empty.

Types

type CacheCtxType

type CacheCtxType = cache.Cache

type ContentKey

type ContentKey string
const (
	CTX_POSTGRES_KEY         ContentKey = "__ctx.database.postgres.key__"
	CTX_RETHINK_DB_KEY       ContentKey = "__ctx.database.rethinkdb.key__"
	CTX_REDIS_KEY            ContentKey = "__ctx.cache.redis.key__"
	CTX_CACHE_DB_KEY         ContentKey = "__ctx.cache.db.key__"
	CTX_NATS_KEY             ContentKey = "__ctx.msg.nats.key__"
	CTX_SERVICE_MSGBORKER    ContentKey = "__ctx.service.msgborker.key__"
	CTX_SERVICE_PERSISTENCE  ContentKey = "__ctx.service.persistence.key__"
	CTX_SERVICE_CONVERSATION ContentKey = "__ctx.service.conversation.key__"
	CTX_SERVICE_MSGHUB       ContentKey = "__ctx.service.msghub.key__"
	CTX_SERVICE_MSGID        ContentKey = "__ctx.service.msgid.key__"
	CTX_LOGGER_KEY           ContentKey = "__ctx.logger.key__"
	CTX_IP_WHITELIST_KEY     ContentKey = "__ctx.ip.whitelist.key__"
)
const (
	HTTP_CTX_JWT_CLAIMS ContentKey = "__http.ctx.jwt.claims__"
)

type IPWhiteListCtxType

type IPWhiteListCtxType = []string

type LoggerCtxType

type LoggerCtxType = logger.Logger

type NatsCtxType

type NatsCtxType = *messaging.NatsWarp

type PgCtxType

type PgCtxType = *pgxpool.Pool

type RedisCtxType

type RedisCtxType = *redis.Client

type RethinkDbCtxType

type RethinkDbCtxType = *r.Session

type RpcxClientCtxType

type RpcxClientCtxType = *rpcx.RpcxClientWithOpt

type Sort

type Sort bool
var (
	Desc Sort = true
	Asc  Sort = false
)

Jump to

Keyboard shortcuts

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