MCPcopy Create free account

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

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

FunctionErrorc
Errorc logs a message at the error log level.
library/log/log.go:118
FunctionErrorv
Errorv logs a message at the error log level.
library/log/log.go:138
FunctionErrorw
Errorw logs a message with some additional context. The variadic key-value pairs are treated as they are in With.
library/log/log.go:171
MethodExec
Exec executes a prepared statement with the given arguments and returns a Result summarizing the effect of the statement.
library/database/sql/sql.go:347
MethodExec
Exec executes a query that doesn't return rows. For example: an INSERT and UPDATE.
library/database/sql/sql.go:435
FunctionFloat64
Float64 is a helper that converts a command reply to 64 bit float. If err is not equal to nil, then Float64 returns 0, err. Otherwise, Float64 convert
library/cache/redis/reply.go:125
FunctionGetRedisKey
(c *gin.Context)
app/demo-api/internal/server/http/student.go:93
FunctionInfoc
Infoc logs a message at the info log level.
library/log/log.go:113
FunctionInfov
Infov logs a message at the info log level.
library/log/log.go:128
FunctionInfow
Infow logs a message with some additional context. The variadic key-value pairs are treated as they are in With.
library/log/log.go:161
FunctionInt64Map
Int64Map is a helper that converts an array of strings (alternating key, value) into a map[string]int64. The HGETALL commands return replies in this f
library/cache/redis/reply.go:388
FunctionInt64s
Int64s is a helper that converts an array command reply to a []int64. If err is not equal to nil, then Int64s returns nil, err.
library/cache/redis/reply.go:324
FunctionIntMap
IntMap is a helper that converts an array of strings (alternating key, value) into a map[string]int. The HGETALL commands return replies in this forma
library/cache/redis/reply.go:362
FunctionInts
Ints is a helper that converts an array command reply to a []int. If err is not equal to nil, then Ints returns nil, err.
library/cache/redis/reply.go:310
FunctionKVDuration
KVDuration construct Field with Duration value.
library/log/field.go:50
FunctionKVFloat32
KVFloat32 construct Field with float32 value.
library/log/field.go:40
FunctionKVFloat64
KVFloat64 construct Field with float64 value.
library/log/field.go:45
FunctionKVInt
KVInt construct Field with int value.
library/log/field.go:20
FunctionKVUint
KVUint construct Field with uint value.
library/log/field.go:30
FunctionKVUint64
KVUint64 construct Field with uint64 value.
library/log/field.go:35
FunctionListStudent
@Summary 学生列表 @Produce json @Param studName query string true "学生姓名" @Success 200 {object} render.JSON @Router /api/v1/student/list [get]
app/demo-api/internal/server/http/student.go:17
MethodListStudent
Student List
app/demo-api/internal/dao/student.go:18
MethodLog
Log loggint to file .
library/log/file.go:59
MethodLog
Log handlers logging.
library/log/handler.go:78
MethodLog
Log stdout loging, only for developing env.
library/log/stdout.go:29
MethodMarshalLogArray
MarshalLogArray calls the underlying function.
library/log/internal/core/encoder.go:80
MethodMarshalLogObject
MarshalLogObject calls the underlying function.
library/log/internal/core/encoder.go:64
MethodMaster
Master return *DB instance direct use master conn use this *DB instance only when you have some reason need to get result without any delay.
library/database/sql/sql.go:236
MethodMessage
Message return error message
library/ecode/ecode.go:54
FunctionMultiBulk
MultiBulk is a helper that converts an array command reply to a []interface{}. Deprecated: Use Values instead.
library/cache/redis/reply.go:223
FunctionNewBuffer
by default, create 1 KiB buffers NewBuffer is new buffer
library/log/internal/core/buffer.go:8
FunctionNewConn
NewConn will create a rpc conns by default config.
library/net/rpc/client.go:123
FunctionNewJSONEncoder
NewJSONEncoder creates a fast, low-allocation JSON encoder. The encoder appropriately escapes all field keys and values. Note that the encoder doesn'
library/log/internal/core/json_encoder.go:58
FunctionNewMySQL
NewMySQL new db and retry connection when has error.
library/database/sql/mysql.go:22
FunctionNewMySQL
NewMySQL new db and retry connection when has error.
library/database/orm/orm.go:35
MethodOpenNamespace
(key string)
library/log/internal/core/json_encoder.go:135
MethodOpenNamespace
OpenNamespace opens an isolated namespace where all subsequent fields will be added. Applications can use namespaces to prevent key collisions when in
library/log/internal/core/encoder.go:49
MethodPing
Ping verifies a connection to the database is still alive, establishing a connection if necessary.
library/database/sql/sql.go:222
MethodPing
Ping ping the resource.
app/demo-api/internal/service/service.go:25
MethodPing
Ping ping the resource.
app/demo-api/internal/dao/dao.go:45
MethodPrepare
Prepare creates a prepared statement for use within a transaction. The returned statement operates within the transaction and can no longer be used on
library/database/sql/sql.go:481
MethodPrepared
Prepared creates a prepared statement for later queries or executions. Multiple queries or executions may be run concurrently from the returned statem
library/database/sql/sql.go:173
MethodPrint
(v ...interface{})
library/database/orm/orm.go:26
MethodQuery
Query executes a prepared query statement with the given arguments and returns the query results as a *Rows.
library/database/sql/sql.go:369
MethodQuery
Query executes a query that returns rows, typically a SELECT.
library/database/sql/sql.go:445
MethodQueryRow
QueryRow executes a query that is expected to return at most one row. QueryRow always returns a non-nil value. Errors are deferred until Row's Scan me
library/database/sql/sql.go:191
MethodQueryRow
QueryRow executes a prepared query statement with the given arguments. If an error occurs during the execution of the statement, that error will be re
library/database/sql/sql.go:396
MethodQueryRow
QueryRow executes a query that is expected to return at most one row. QueryRow always returns a non-nil value. Errors are deferred until Row's Scan me
library/database/sql/sql.go:459
MethodReadDoc
()
app/demo-api/docs/docs.go:154
MethodRender
Render implemet Formater
library/log/pattern.go:72
MethodRenderString
(map[string]interface{})
library/log/pattern.go:15
MethodRenderString
Render implemet Formater as string
library/log/pattern.go:86
FunctionRotateFormat
RotateFormat e.g 2006-01-02 meaning rotate log file every day. NOTE: format can't contain ".", "." will cause panic ヽ(*。>Д<)o゜.
library/log/internal/filewriter/option.go:37
FunctionScan
Scan copies from src to the values pointed at by dest. The values pointed at by dest must be an integer, float, boolean, string, []byte, interface{}
library/cache/redis/scan.go:233
MethodScan
Scan copies the columns from the matched row into the values pointed at by dest.
library/database/sql/sql.go:67
FunctionScanStruct
ScanStruct scans alternating names and values from src to a struct. The HGETALL and CONFIG GET commands return replies in this format. ScanStruct use
library/cache/redis/scan.go:367
FunctionSearchKeyword
(c *gin.Context)
app/demo-api/internal/server/http/student.go:125
MethodSearchKeyword
(ctx context.Context)
app/demo-api/internal/dao/fantuan.go:12
FunctionSecondsDurationEncoder
SecondsDurationEncoder serializes a time.Duration to a floating-point number of seconds elapsed.
library/log/internal/core/encoder.go:185
FunctionSetFormat
SetFormat only effective on stdout and file middleware %T time format at "15:04:05.999" on stdout middleware, "15:04:05 MST" on file middleware %t tim
library/log/log.go:156
MethodSetFormat
SetFormat set log format
library/log/file.go:85
MethodSetFormat
SetFormat.
library/log/handler.go:109
MethodSetFormat
SetFormat set stdout log output format %T time format at "15:04:05.999" %t time format at "15:04:05" %D data format at "2006/01/02" %d data format at
library/log/stdout.go:58
FunctionSetRedisKey
(c *gin.Context)
app/demo-api/internal/server/http/student.go:104
MethodSetTransport
SetTransport set client transport
library/net/http/client.go:87
MethodStmt
Stmt returns a transaction-specific prepared statement from an existing statement.
library/database/sql/sql.go:466
MethodString
()
library/log/log.go:84
FunctionStringMap
StringMap is a helper that converts an array of strings (alternating key, value) into a map[string]string. The HGETALL and CONFIG GET commands return
library/cache/redis/reply.go:339
FunctionStrings
Strings is a helper that converts an array command reply to a []string. If err is not equal to nil, then Strings returns nil, err. Nil array items are
library/cache/redis/reply.go:252
FunctionTestBufferWrites
(t *testing.T)
library/log/internal/core/buffer_test.go:11
FunctionTestBuffers
(t *testing.T)
library/log/internal/core/pool_test.go:10
FunctionTestCause
(t *testing.T)
library/ecode/ecode_test.go:32
FunctionTestClient
(t *testing.T)
library/net/http/client_test.go:78
FunctionTestClient
(t *testing.T)
library/net/rpc/client_test.go:32
FunctionTestCodeConvert
(t *testing.T)
library/net/rpc/status/status_test.go:12
FunctionTestConcurrentDo
(t *testing.T)
library/net/netutil/breaker/breaker_test.go:54
FunctionTestDo
(t *testing.T)
library/net/http/client_test.go:135
FunctionTestDo
(t *testing.T)
library/net/netutil/breaker/breaker_test.go:34
FunctionTestErrMessage
(t *testing.T)
library/ecode/ecode_test.go:20
FunctionTestFileWriter
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:195
FunctionTestGetConnAndSayHello
(t *testing.T)
library/net/rpc/pool_test.go:68
FunctionTestGroup
(t *testing.T)
library/net/netutil/breaker/breaker_test.go:12
FunctionTestInt
(t *testing.T)
library/ecode/ecode_test.go:42
FunctionTestMain
(m *testing.M)
library/log/internal/filewriter/filewriter_test.go:25
FunctionTestMaxFile
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:124
FunctionTestMaxFile2
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:154
FunctionTestNew
(t *testing.T)
library/ecode/ecode_test.go:7
FunctionTestNoDetailsConvert
(t *testing.T)
library/net/rpc/status/status_test.go:39
FunctionTestParseRotate
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:31
FunctionTestPool_GetConn
(t *testing.T)
library/net/rpc/pool_test.go:35
FunctionTestPool_Put
(t *testing.T)
library/net/rpc/pool_test.go:13
FunctionTestRotateExists
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:57
FunctionTestShrink
(t *testing.T)
library/time/time_test.go:9
FunctionTestShrinkWithDeadline
(t *testing.T)
library/time/time_test.go:44
FunctionTestShrinkWithTimeout
(t *testing.T)
library/time/time_test.go:26
FunctionTestSizeRotate
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:95
FunctionTestString
(t *testing.T)
library/ecode/ecode_test.go:54
FunctionTxAddTeacherAndStudent
(c *gin.Context)
app/demo-api/internal/server/http/student.go:87
FunctionUint64
Uint64 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:96
FunctionUpdateStudentName
@Summary 修改学生 @Produce json @Param id query int true "学生编号" @Param StudName query string true "学生姓名" @Success 200 {object} render.JSON @Router /api/v1
app/demo-api/internal/server/http/student.go:70
← previousnext →301–400 of 418, ranked by callers