Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daoshenzzg/go-web-demo
/ functions
Functions
418 in github.com/daoshenzzg/go-web-demo
⨍
Functions
418
◇
Types & classes
71
↓ 2 callers
Method
TrimNewline
TrimNewline trims any final "\n" byte from the end of the buffer.
library/log/internal/core/buffer.go:84
↓ 2 callers
Method
appendFloat
(val float64, bitSize int)
library/log/internal/core/json_encoder.go:337
↓ 2 callers
Method
clone
()
library/log/internal/core/json_encoder.go:276
↓ 2 callers
Function
connect
(c *Config, dataSourceName string)
library/database/sql/sql.go:138
↓ 2 callers
Function
convertAssignBulkString
(d reflect.Value, s []byte)
library/cache/redis/scan.go:55
↓ 2 callers
Function
convertAssignInt
(d reflect.Value, s int64)
library/cache/redis/scan.go:88
↓ 2 callers
Method
fix
()
library/net/netutil/breaker/breaker.go:43
↓ 2 callers
Function
flattenStruct
(args Args, v reflect.Value)
library/cache/redis/scan.go:532
↓ 2 callers
Function
newHandlers
(filters []string, handlers ...Handler)
library/log/handler.go:63
↓ 2 callers
Function
newWrapFile
(fpath string)
library/log/internal/filewriter/filewriter.go:112
↓ 2 callers
Function
parseRotateItem
(dir, fname, rotateFormat string)
library/log/internal/filewriter/filewriter.go:44
↓ 2 callers
Method
ping
(c context.Context)
library/database/sql/sql.go:267
↓ 2 callers
Method
putBuf
(buf *bytes.Buffer)
library/log/internal/filewriter/filewriter.go:337
↓ 2 callers
Method
query
(c context.Context, query string, args ...interface{})
library/database/sql/sql.go:312
↓ 2 callers
Method
queryRow
(c context.Context, query string, args ...interface{})
library/database/sql/sql.go:325
↓ 2 callers
Method
readIndex
()
library/database/sql/sql.go:199
↓ 2 callers
Method
resetReflectBuf
()
library/log/internal/core/json_encoder.go:114
↓ 2 callers
Method
safeAddString
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 callers
Function
textFactory
(text string)
library/log/pattern.go:100
↓ 2 callers
Function
toMap
toMap convert D slice to map[string]interface{} for legacy file and stdout.
library/log/util.go:12
↓ 2 callers
Method
tryAddRuneError
(r rune, size int)
library/log/internal/core/json_encoder.go:418
↓ 2 callers
Method
tryAddRuneSelf
tryAddRuneSelf appends b if it is valid UTF-8 character represented in a single byte.
library/log/internal/core/json_encoder.go:388
↓ 1 callers
Method
AddBool
for UTF-8 encoded bytes
library/log/internal/core/encoder.go:23
↓ 1 callers
Method
AddByteString
for arbitrary bytes
library/log/internal/core/encoder.go:22
↓ 1 callers
Method
AddComplex128
(key string, val complex128)
library/log/internal/core/json_encoder.go:94
↓ 1 callers
Method
AddComplex128
(key string, value complex128)
library/log/internal/core/encoder.go:24
↓ 1 callers
Method
AddComplex64
(key string, value complex64)
library/log/internal/core/encoder.go:25
↓ 1 callers
Method
AddFloat64
(key string, val float64)
library/log/internal/core/json_encoder.go:104
↓ 1 callers
Method
AddInt16
(key string, value int16)
library/log/internal/core/encoder.go:32
↓ 1 callers
Method
AddInt32
(key string, value int32)
library/log/internal/core/encoder.go:31
↓ 1 callers
Method
AddInt8
(key string, value int8)
library/log/internal/core/encoder.go:33
↓ 1 callers
Method
AddReflected
AddReflected uses reflection to serialize arbitrary objects, so it's slow and allocation-heavy.
library/log/internal/core/encoder.go:45
↓ 1 callers
Method
AddString
(key, val string)
library/log/internal/core/json_encoder.go:141
↓ 1 callers
Method
AddStudent
AddStudent
app/demo-api/internal/service/student.go:35
↓ 1 callers
Method
AddTo
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 callers
Method
AddUint16
(key string, value uint16)
library/log/internal/core/encoder.go:39
↓ 1 callers
Method
AddUint32
(key string, value uint32)
library/log/internal/core/encoder.go:38
↓ 1 callers
Method
AddUint8
(key string, value uint8)
library/log/internal/core/encoder.go:40
↓ 1 callers
Method
AddUintptr
(key string, value uintptr)
library/log/internal/core/encoder.go:41
↓ 1 callers
Method
AppendArray
(arr ArrayMarshaler)
library/log/internal/core/json_encoder.go:156
↓ 1 callers
Method
AppendBool
(val bool)
library/log/internal/core/json_encoder.go:172
↓ 1 callers
Method
AppendByteString
(val []byte)
library/log/internal/core/json_encoder.go:177
↓ 1 callers
Method
AppendDuration
(val time.Duration)
library/log/internal/core/json_encoder.go:198
↓ 1 callers
Method
AppendFloat64
(v float64)
library/log/internal/core/json_encoder.go:259
↓ 1 callers
Method
AppendFloat64
(float64)
library/log/internal/core/encoder.go:114
↓ 1 callers
Method
AppendObject
(obj ObjectMarshaler)
library/log/internal/core/json_encoder.go:164
↓ 1 callers
Method
AppendString
(val string)
library/log/internal/core/json_encoder.go:225
↓ 1 callers
Method
AppendTime
(val time.Time)
library/log/internal/core/json_encoder.go:232
↓ 1 callers
Method
Begin
Begin starts a transaction. The isolation level is dependent on the driver.
library/database/sql/sql.go:151
↓ 1 callers
Method
BeginTran
BeginTran begin transaction
app/demo-api/internal/dao/dao.go:37
↓ 1 callers
Function
Close
Close close resource.
library/log/log.go:191
↓ 1 callers
Method
Code
Code return error code
library/ecode/ecode.go:51
↓ 1 callers
Method
Commit
Commit commits the transaction.
library/database/sql/sql.go:414
↓ 1 callers
Function
DefaultClient
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 callers
Function
EqualError
EqualError equal error
library/ecode/ecode.go:101
↓ 1 callers
Method
Error
()
library/ecode/ecode.go:46
↓ 1 callers
Method
GetKey
(c context.Context, key string)
app/demo-api/internal/dao/redis.go:9
↓ 1 callers
Method
GetRedisKey
GetRedisKey
app/demo-api/internal/service/student.go:93
↓ 1 callers
Function
Init
Init create logger with context.
library/log/log.go:59
↓ 1 callers
Function
Init
()
app/demo-api/internal/conf/conf.go:53
↓ 1 callers
Function
Int
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 callers
Function
Int64
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 callers
Function
KVInt64
KVInt64 construct D with int64 value.
library/log/field.go:25
↓ 1 callers
Method
ListStudent
ListStudent
app/demo-api/internal/service/student.go:15
↓ 1 callers
Method
MarshalLogArray
(ArrayEncoder)
library/log/internal/core/encoder.go:72
↓ 1 callers
Method
MarshalLogObject
(ObjectEncoder)
library/log/internal/core/encoder.go:56
↓ 1 callers
Function
New
New init
app/demo-api/internal/service/service.go:16
↓ 1 callers
Function
New
New init
app/demo-api/internal/dao/dao.go:25
↓ 1 callers
Function
New
New init
app/demo-api/internal/server/http/http.go:23
↓ 1 callers
Function
NewFile
NewFile crete a file logger.
library/log/file.go:33
↓ 1 callers
Function
NewPool
NewPool creates a new pool.
library/cache/redis/redis.go:26
↓ 1 callers
Function
Open
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 callers
Method
Post
Post issues a Post to the specified URL.
library/net/http/client.go:147
↓ 1 callers
Method
Scan
Scan scan time.
library/time/time.go:14
↓ 1 callers
Method
SearchKeyword
SearchKeyword
app/demo-api/internal/service/student.go:103
↓ 1 callers
Method
SetConfig
SetConfig hot reloads client config
library/net/rpc/client.go:77
↓ 1 callers
Method
SetKey
(c context.Context, key, val string, expire int64)
app/demo-api/internal/dao/redis.go:23
↓ 1 callers
Method
SetRedisKey
SetRedisKey
app/demo-api/internal/service/student.go:98
↓ 1 callers
Function
SlowAccess
SlowAccess handler record slow access
app/demo-api/internal/middleware/access/slow_access.go:15
↓ 1 callers
Method
Time
Time get time.
library/time/time.go:32
↓ 1 callers
Function
TogRPCCode
togRPCCode convert ecode.Codo to gRPC code
library/net/rpc/status/status.go:10
↓ 1 callers
Method
TxAddStudent
TxAddStudent
app/demo-api/internal/dao/student.go:55
↓ 1 callers
Method
TxAddTeacher
TxAddTeacher
app/demo-api/internal/dao/teacher.go:15
↓ 1 callers
Method
TxAddTeacherAndStudent
TxAddTeacherAndStudent
app/demo-api/internal/service/student.go:59
↓ 1 callers
Method
UpdateStudentName
UpdateStudentName
app/demo-api/internal/service/student.go:45
↓ 1 callers
Method
UseOpt
UseOpt attachs a global rpc DialOption to the Client.
library/net/rpc/client.go:117
↓ 1 callers
Function
addFlag
addFlag init log from dsn.
library/log/log.go:46
↓ 1 callers
Method
assertAddTo
(enc ObjectEncoder)
library/log/internal/core/field.go:65
↓ 1 callers
Method
begin
(c context.Context)
library/database/sql/sql.go:243
↓ 1 callers
Method
chainUnaryClient
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 callers
Method
checkRotate
(t time.Time)
library/log/internal/filewriter/filewriter.go:275
↓ 1 callers
Method
closeOpenNamespaces
()
library/log/internal/core/json_encoder.go:304
↓ 1 callers
Function
compileStructSpec
(t reflect.Type, depth map[string]int, index []int, ss *structSpec)
library/cache/redis/scan.go:263
↓ 1 callers
Function
convertAssign
(d interface{}, s interface{})
library/cache/redis/scan.go:141
↓ 1 callers
Function
convertAssignArray
(d reflect.Value, s []interface{})
library/cache/redis/scan.go:128
↓ 1 callers
Method
daemon
()
library/log/internal/filewriter/filewriter.go:225
↓ 1 callers
Function
defaultString
(env, value string)
library/conf/env/env.go:45
↓ 1 callers
Method
exec
(c context.Context, query string, args ...interface{})
library/database/sql/sql.go:256
↓ 1 callers
Method
fieldSpec
(name []byte)
library/cache/redis/scan.go:259
↓ 1 callers
Function
funcName
funcName get func name.
library/log/util.go:34
← previous
next →
101–200 of 418, ranked by callers