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
Function
Errorc
Errorc logs a message at the error log level.
library/log/log.go:118
Function
Errorv
Errorv logs a message at the error log level.
library/log/log.go:138
Function
Errorw
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
Method
Exec
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
Method
Exec
Exec executes a query that doesn't return rows. For example: an INSERT and UPDATE.
library/database/sql/sql.go:435
Function
Float64
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
Function
GetRedisKey
(c *gin.Context)
app/demo-api/internal/server/http/student.go:93
Function
Infoc
Infoc logs a message at the info log level.
library/log/log.go:113
Function
Infov
Infov logs a message at the info log level.
library/log/log.go:128
Function
Infow
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
Function
Int64Map
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
Function
Int64s
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
Function
IntMap
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
Function
Ints
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
Function
KVDuration
KVDuration construct Field with Duration value.
library/log/field.go:50
Function
KVFloat32
KVFloat32 construct Field with float32 value.
library/log/field.go:40
Function
KVFloat64
KVFloat64 construct Field with float64 value.
library/log/field.go:45
Function
KVInt
KVInt construct Field with int value.
library/log/field.go:20
Function
KVUint
KVUint construct Field with uint value.
library/log/field.go:30
Function
KVUint64
KVUint64 construct Field with uint64 value.
library/log/field.go:35
Function
ListStudent
@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
Method
ListStudent
Student List
app/demo-api/internal/dao/student.go:18
Method
Log
Log loggint to file .
library/log/file.go:59
Method
Log
Log handlers logging.
library/log/handler.go:78
Method
Log
Log stdout loging, only for developing env.
library/log/stdout.go:29
Method
MarshalLogArray
MarshalLogArray calls the underlying function.
library/log/internal/core/encoder.go:80
Method
MarshalLogObject
MarshalLogObject calls the underlying function.
library/log/internal/core/encoder.go:64
Method
Master
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
Method
Message
Message return error message
library/ecode/ecode.go:54
Function
MultiBulk
MultiBulk is a helper that converts an array command reply to a []interface{}. Deprecated: Use Values instead.
library/cache/redis/reply.go:223
Function
NewBuffer
by default, create 1 KiB buffers NewBuffer is new buffer
library/log/internal/core/buffer.go:8
Function
NewConn
NewConn will create a rpc conns by default config.
library/net/rpc/client.go:123
Function
NewJSONEncoder
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
Function
NewMySQL
NewMySQL new db and retry connection when has error.
library/database/sql/mysql.go:22
Function
NewMySQL
NewMySQL new db and retry connection when has error.
library/database/orm/orm.go:35
Method
OpenNamespace
(key string)
library/log/internal/core/json_encoder.go:135
Method
OpenNamespace
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
Method
Ping
Ping verifies a connection to the database is still alive, establishing a connection if necessary.
library/database/sql/sql.go:222
Method
Ping
Ping ping the resource.
app/demo-api/internal/service/service.go:25
Method
Ping
Ping ping the resource.
app/demo-api/internal/dao/dao.go:45
Method
Prepare
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
Method
Prepared
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
Method
Print
(v ...interface{})
library/database/orm/orm.go:26
Method
Query
Query executes a prepared query statement with the given arguments and returns the query results as a *Rows.
library/database/sql/sql.go:369
Method
Query
Query executes a query that returns rows, typically a SELECT.
library/database/sql/sql.go:445
Method
QueryRow
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
Method
QueryRow
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
Method
QueryRow
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
Method
ReadDoc
()
app/demo-api/docs/docs.go:154
Method
Render
Render implemet Formater
library/log/pattern.go:72
Method
RenderString
(map[string]interface{})
library/log/pattern.go:15
Method
RenderString
Render implemet Formater as string
library/log/pattern.go:86
Function
RotateFormat
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
Function
Scan
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
Method
Scan
Scan copies the columns from the matched row into the values pointed at by dest.
library/database/sql/sql.go:67
Function
ScanStruct
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
Function
SearchKeyword
(c *gin.Context)
app/demo-api/internal/server/http/student.go:125
Method
SearchKeyword
(ctx context.Context)
app/demo-api/internal/dao/fantuan.go:12
Function
SecondsDurationEncoder
SecondsDurationEncoder serializes a time.Duration to a floating-point number of seconds elapsed.
library/log/internal/core/encoder.go:185
Function
SetFormat
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
Method
SetFormat
SetFormat set log format
library/log/file.go:85
Method
SetFormat
SetFormat.
library/log/handler.go:109
Method
SetFormat
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
Function
SetRedisKey
(c *gin.Context)
app/demo-api/internal/server/http/student.go:104
Method
SetTransport
SetTransport set client transport
library/net/http/client.go:87
Method
Stmt
Stmt returns a transaction-specific prepared statement from an existing statement.
library/database/sql/sql.go:466
Method
String
()
library/log/log.go:84
Function
StringMap
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
Function
Strings
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
Function
TestBufferWrites
(t *testing.T)
library/log/internal/core/buffer_test.go:11
Function
TestBuffers
(t *testing.T)
library/log/internal/core/pool_test.go:10
Function
TestCause
(t *testing.T)
library/ecode/ecode_test.go:32
Function
TestClient
(t *testing.T)
library/net/http/client_test.go:78
Function
TestClient
(t *testing.T)
library/net/rpc/client_test.go:32
Function
TestCodeConvert
(t *testing.T)
library/net/rpc/status/status_test.go:12
Function
TestConcurrentDo
(t *testing.T)
library/net/netutil/breaker/breaker_test.go:54
Function
TestDo
(t *testing.T)
library/net/http/client_test.go:135
Function
TestDo
(t *testing.T)
library/net/netutil/breaker/breaker_test.go:34
Function
TestErrMessage
(t *testing.T)
library/ecode/ecode_test.go:20
Function
TestFileWriter
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:195
Function
TestGetConnAndSayHello
(t *testing.T)
library/net/rpc/pool_test.go:68
Function
TestGroup
(t *testing.T)
library/net/netutil/breaker/breaker_test.go:12
Function
TestInt
(t *testing.T)
library/ecode/ecode_test.go:42
Function
TestMain
(m *testing.M)
library/log/internal/filewriter/filewriter_test.go:25
Function
TestMaxFile
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:124
Function
TestMaxFile2
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:154
Function
TestNew
(t *testing.T)
library/ecode/ecode_test.go:7
Function
TestNoDetailsConvert
(t *testing.T)
library/net/rpc/status/status_test.go:39
Function
TestParseRotate
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:31
Function
TestPool_GetConn
(t *testing.T)
library/net/rpc/pool_test.go:35
Function
TestPool_Put
(t *testing.T)
library/net/rpc/pool_test.go:13
Function
TestRotateExists
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:57
Function
TestShrink
(t *testing.T)
library/time/time_test.go:9
Function
TestShrinkWithDeadline
(t *testing.T)
library/time/time_test.go:44
Function
TestShrinkWithTimeout
(t *testing.T)
library/time/time_test.go:26
Function
TestSizeRotate
(t *testing.T)
library/log/internal/filewriter/filewriter_test.go:95
Function
TestString
(t *testing.T)
library/ecode/ecode_test.go:54
Function
TxAddTeacherAndStudent
(c *gin.Context)
app/demo-api/internal/server/http/student.go:87
Function
Uint64
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
Function
UpdateStudentName
@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
← previous
next →
301–400 of 418, ranked by callers