MCPcopy Create free account

hub / github.com/daoshenzzg/go-web-demo / functions

Functions418 in github.com/daoshenzzg/go-web-demo

↓ 2 callersMethodTrimNewline
TrimNewline trims any final "\n" byte from the end of the buffer.
library/log/internal/core/buffer.go:84
↓ 2 callersMethodappendFloat
(val float64, bitSize int)
library/log/internal/core/json_encoder.go:337
↓ 2 callersMethodclone
()
library/log/internal/core/json_encoder.go:276
↓ 2 callersFunctionconnect
(c *Config, dataSourceName string)
library/database/sql/sql.go:138
↓ 2 callersFunctionconvertAssignBulkString
(d reflect.Value, s []byte)
library/cache/redis/scan.go:55
↓ 2 callersFunctionconvertAssignInt
(d reflect.Value, s int64)
library/cache/redis/scan.go:88
↓ 2 callersMethodfix
()
library/net/netutil/breaker/breaker.go:43
↓ 2 callersFunctionflattenStruct
(args Args, v reflect.Value)
library/cache/redis/scan.go:532
↓ 2 callersFunctionnewHandlers
(filters []string, handlers ...Handler)
library/log/handler.go:63
↓ 2 callersFunctionnewWrapFile
(fpath string)
library/log/internal/filewriter/filewriter.go:112
↓ 2 callersFunctionparseRotateItem
(dir, fname, rotateFormat string)
library/log/internal/filewriter/filewriter.go:44
↓ 2 callersMethodping
(c context.Context)
library/database/sql/sql.go:267
↓ 2 callersMethodputBuf
(buf *bytes.Buffer)
library/log/internal/filewriter/filewriter.go:337
↓ 2 callersMethodquery
(c context.Context, query string, args ...interface{})
library/database/sql/sql.go:312
↓ 2 callersMethodqueryRow
(c context.Context, query string, args ...interface{})
library/database/sql/sql.go:325
↓ 2 callersMethodreadIndex
()
library/database/sql/sql.go:199
↓ 2 callersMethodresetReflectBuf
()
library/log/internal/core/json_encoder.go:114
↓ 2 callersMethodsafeAddString
safeAddString JSON-escapes a string and appends it to the internal buffer. Unlike the standard library's encoder, it doesn't attempt to protect the us
library/log/internal/core/json_encoder.go:354
↓ 2 callersFunctiontextFactory
(text string)
library/log/pattern.go:100
↓ 2 callersFunctiontoMap
toMap convert D slice to map[string]interface{} for legacy file and stdout.
library/log/util.go:12
↓ 2 callersMethodtryAddRuneError
(r rune, size int)
library/log/internal/core/json_encoder.go:418
↓ 2 callersMethodtryAddRuneSelf
tryAddRuneSelf appends b if it is valid UTF-8 character represented in a single byte.
library/log/internal/core/json_encoder.go:388
↓ 1 callersMethodAddBool
for UTF-8 encoded bytes
library/log/internal/core/encoder.go:23
↓ 1 callersMethodAddByteString
for arbitrary bytes
library/log/internal/core/encoder.go:22
↓ 1 callersMethodAddComplex128
(key string, val complex128)
library/log/internal/core/json_encoder.go:94
↓ 1 callersMethodAddComplex128
(key string, value complex128)
library/log/internal/core/encoder.go:24
↓ 1 callersMethodAddComplex64
(key string, value complex64)
library/log/internal/core/encoder.go:25
↓ 1 callersMethodAddFloat64
(key string, val float64)
library/log/internal/core/json_encoder.go:104
↓ 1 callersMethodAddInt16
(key string, value int16)
library/log/internal/core/encoder.go:32
↓ 1 callersMethodAddInt32
(key string, value int32)
library/log/internal/core/encoder.go:31
↓ 1 callersMethodAddInt8
(key string, value int8)
library/log/internal/core/encoder.go:33
↓ 1 callersMethodAddReflected
AddReflected uses reflection to serialize arbitrary objects, so it's slow and allocation-heavy.
library/log/internal/core/encoder.go:45
↓ 1 callersMethodAddString
(key, val string)
library/log/internal/core/json_encoder.go:141
↓ 1 callersMethodAddStudent
AddStudent
app/demo-api/internal/service/student.go:35
↓ 1 callersMethodAddTo
AddTo exports a field through the ObjectEncoder interface. It's primarily useful to library authors, and shouldn't be necessary in most applications.
library/log/internal/core/field.go:38
↓ 1 callersMethodAddUint16
(key string, value uint16)
library/log/internal/core/encoder.go:39
↓ 1 callersMethodAddUint32
(key string, value uint32)
library/log/internal/core/encoder.go:38
↓ 1 callersMethodAddUint8
(key string, value uint8)
library/log/internal/core/encoder.go:40
↓ 1 callersMethodAddUintptr
(key string, value uintptr)
library/log/internal/core/encoder.go:41
↓ 1 callersMethodAppendArray
(arr ArrayMarshaler)
library/log/internal/core/json_encoder.go:156
↓ 1 callersMethodAppendBool
(val bool)
library/log/internal/core/json_encoder.go:172
↓ 1 callersMethodAppendByteString
(val []byte)
library/log/internal/core/json_encoder.go:177
↓ 1 callersMethodAppendDuration
(val time.Duration)
library/log/internal/core/json_encoder.go:198
↓ 1 callersMethodAppendFloat64
(v float64)
library/log/internal/core/json_encoder.go:259
↓ 1 callersMethodAppendFloat64
(float64)
library/log/internal/core/encoder.go:114
↓ 1 callersMethodAppendObject
(obj ObjectMarshaler)
library/log/internal/core/json_encoder.go:164
↓ 1 callersMethodAppendString
(val string)
library/log/internal/core/json_encoder.go:225
↓ 1 callersMethodAppendTime
(val time.Time)
library/log/internal/core/json_encoder.go:232
↓ 1 callersMethodBegin
Begin starts a transaction. The isolation level is dependent on the driver.
library/database/sql/sql.go:151
↓ 1 callersMethodBeginTran
BeginTran begin transaction
app/demo-api/internal/dao/dao.go:37
↓ 1 callersFunctionClose
Close close resource.
library/log/log.go:191
↓ 1 callersMethodCode
Code return error code
library/ecode/ecode.go:51
↓ 1 callersMethodCommit
Commit commits the transaction.
library/database/sql/sql.go:414
↓ 1 callersFunctionDefaultClient
DefaultClient returns a new default Client instance with a default client interceptor and default dialoption. opt can be used to add rpc dial options.
library/net/rpc/client.go:141
↓ 1 callersFunctionEqualError
EqualError equal error
library/ecode/ecode.go:101
↓ 1 callersMethodError
()
library/ecode/ecode.go:46
↓ 1 callersMethodGetKey
(c context.Context, key string)
app/demo-api/internal/dao/redis.go:9
↓ 1 callersMethodGetRedisKey
GetRedisKey
app/demo-api/internal/service/student.go:93
↓ 1 callersFunctionInit
Init create logger with context.
library/log/log.go:59
↓ 1 callersFunctionInit
()
app/demo-api/internal/conf/conf.go:53
↓ 1 callersFunctionInt
Int is a helper that converts a command reply to an integer. If err is not equal to nil, then Int returns 0, err. Otherwise, Int converts the reply to
library/cache/redis/reply.go:36
↓ 1 callersFunctionInt64
Int64 is a helper that converts a command reply to 64 bit integer. If err is not equal to nil, then Int returns 0, err. Otherwise, Int64 converts the
library/cache/redis/reply.go:67
↓ 1 callersFunctionKVInt64
KVInt64 construct D with int64 value.
library/log/field.go:25
↓ 1 callersMethodListStudent
ListStudent
app/demo-api/internal/service/student.go:15
↓ 1 callersMethodMarshalLogArray
(ArrayEncoder)
library/log/internal/core/encoder.go:72
↓ 1 callersMethodMarshalLogObject
(ObjectEncoder)
library/log/internal/core/encoder.go:56
↓ 1 callersFunctionNew
New init
app/demo-api/internal/service/service.go:16
↓ 1 callersFunctionNew
New init
app/demo-api/internal/dao/dao.go:25
↓ 1 callersFunctionNew
New init
app/demo-api/internal/server/http/http.go:23
↓ 1 callersFunctionNewFile
NewFile crete a file logger.
library/log/file.go:33
↓ 1 callersFunctionNewPool
NewPool creates a new pool.
library/cache/redis/redis.go:26
↓ 1 callersFunctionOpen
Open opens a database specified by its database driver name and a driver-specific data source name, usually consisting of at least a database name and
library/database/sql/sql.go:116
↓ 1 callersMethodPost
Post issues a Post to the specified URL.
library/net/http/client.go:147
↓ 1 callersMethodScan
Scan scan time.
library/time/time.go:14
↓ 1 callersMethodSearchKeyword
SearchKeyword
app/demo-api/internal/service/student.go:103
↓ 1 callersMethodSetConfig
SetConfig hot reloads client config
library/net/rpc/client.go:77
↓ 1 callersMethodSetKey
(c context.Context, key, val string, expire int64)
app/demo-api/internal/dao/redis.go:23
↓ 1 callersMethodSetRedisKey
SetRedisKey
app/demo-api/internal/service/student.go:98
↓ 1 callersFunctionSlowAccess
SlowAccess handler record slow access
app/demo-api/internal/middleware/access/slow_access.go:15
↓ 1 callersMethodTime
Time get time.
library/time/time.go:32
↓ 1 callersFunctionTogRPCCode
togRPCCode convert ecode.Codo to gRPC code
library/net/rpc/status/status.go:10
↓ 1 callersMethodTxAddStudent
TxAddStudent
app/demo-api/internal/dao/student.go:55
↓ 1 callersMethodTxAddTeacher
TxAddTeacher
app/demo-api/internal/dao/teacher.go:15
↓ 1 callersMethodTxAddTeacherAndStudent
TxAddTeacherAndStudent
app/demo-api/internal/service/student.go:59
↓ 1 callersMethodUpdateStudentName
UpdateStudentName
app/demo-api/internal/service/student.go:45
↓ 1 callersMethodUseOpt
UseOpt attachs a global rpc DialOption to the Client.
library/net/rpc/client.go:117
↓ 1 callersFunctionaddFlag
addFlag init log from dsn.
library/log/log.go:46
↓ 1 callersMethodassertAddTo
(enc ObjectEncoder)
library/log/internal/core/field.go:65
↓ 1 callersMethodbegin
(c context.Context)
library/database/sql/sql.go:243
↓ 1 callersMethodchainUnaryClient
chainUnaryClient creates a single interceptor out of a chain of many interceptors. Execution is done in left-to-right order, including passing of con
library/net/rpc/client.go:175
↓ 1 callersMethodcheckRotate
(t time.Time)
library/log/internal/filewriter/filewriter.go:275
↓ 1 callersMethodcloseOpenNamespaces
()
library/log/internal/core/json_encoder.go:304
↓ 1 callersFunctioncompileStructSpec
(t reflect.Type, depth map[string]int, index []int, ss *structSpec)
library/cache/redis/scan.go:263
↓ 1 callersFunctionconvertAssign
(d interface{}, s interface{})
library/cache/redis/scan.go:141
↓ 1 callersFunctionconvertAssignArray
(d reflect.Value, s []interface{})
library/cache/redis/scan.go:128
↓ 1 callersMethoddaemon
()
library/log/internal/filewriter/filewriter.go:225
↓ 1 callersFunctiondefaultString
(env, value string)
library/conf/env/env.go:45
↓ 1 callersMethodexec
(c context.Context, query string, args ...interface{})
library/database/sql/sql.go:256
↓ 1 callersMethodfieldSpec
(name []byte)
library/cache/redis/scan.go:259
↓ 1 callersFunctionfuncName
funcName get func name.
library/log/util.go:34
← previousnext →101–200 of 418, ranked by callers