Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daoshenzzg/go-web-demo
/ types & classes
Types & classes
71 in github.com/daoshenzzg/go-web-demo
⨍
Functions
418
◇
Types & classes
71
↓ 5 callers
TypeAlias
Duration
Duration be used toml unmarshal string time, like 1s, 500ms.
library/time/time.go:37
↓ 2 callers
TypeAlias
Code
A Code is an int error code spec.
library/ecode/ecode.go:44
↓ 2 callers
TypeAlias
Time
Time be used to MySql timestamp converting.
library/time/time.go:11
Struct
App
app/demo-api/internal/conf/conf.go:32
TypeAlias
Args
Args is a helper for constructing command arguments from structured values.
library/cache/redis/scan.go:486
Interface
ArrayEncoder
ArrayEncoder is a strongly-typed, encoding-agnostic interface for adding array-like objects to the logging context. Of note, it supports mixed-type ar
library/log/internal/core/encoder.go:88
Interface
ArrayMarshaler
ArrayMarshaler allows user-defined types to efficiently add themselves to the logging context, and to selectively omit information which shouldn't be
library/log/internal/core/encoder.go:71
FuncType
ArrayMarshalerFunc
ArrayMarshalerFunc is a type adapter that turns a function into an ArrayMarshaler.
library/log/internal/core/encoder.go:77
Struct
Buffer
Buffer is a thin wrapper around a byte slice. It's intended to be pooled, so the only way to construct one is via a Pool.
library/log/internal/core/buffer.go:14
Struct
Client
Client is http client.
library/net/http/client.go:50
Struct
Client
Client is the framework's client side instance, it contains the ctx, opt and interceptors. Create an instance of Client, by using NewClient().
library/net/rpc/client.go:40
Struct
ClientConfig
ClientConfig is http client conf.
library/net/http/client.go:40
Struct
ClientConfig
library/net/rpc/client.go:30
Interface
Codes
Codes ecode error interface which has a code & message.
library/ecode/ecode.go:33
Struct
Config
Config client settings.
library/cache/redis/redis.go:15
Struct
Config
Config mysql config.
library/database/sql/mysql.go:9
Struct
Config
Config mysql config.
library/database/orm/orm.go:17
Struct
Config
Config log config.
library/log/log.go:13
Struct
Config
Config broker config.
library/net/netutil/breaker/breaker.go:11
Struct
Config
app/demo-api/internal/conf/conf.go:19
Struct
DB
DB database.
library/database/sql/sql.go:35
Struct
Dao
Dao struct
app/demo-api/internal/dao/dao.go:13
FuncType
DurationEncoder
A DurationEncoder serializes a time.Duration to a primitive type.
library/log/internal/core/encoder.go:171
Interface
Encoder
Encoder is a format-agnostic interface for all log entry marshalers. Since log encoders don't need to support the same wide range of use cases as gene
library/log/internal/core/encoder.go:155
Struct
EncoderConfig
An EncoderConfig allows users to configure the concrete encoders supplied by zapcore.
library/log/internal/core/encoder.go:132
TypeAlias
Error
Error represents an error returned in a command reply.
library/cache/redis/redis.go:48
Struct
Field
Field is for encoder
library/log/internal/core/field.go:28
TypeAlias
FieldType
FieldType represent D value type
library/log/internal/core/field.go:12
Struct
FileHandler
FileHandler .
library/log/file.go:27
Struct
FileWriter
FileWriter create file log writer
library/log/internal/filewriter/filewriter.go:20
Struct
Gin
library/render/render.go:9
Struct
Group
Group represents a class of CircuitBreaker and forms a namespace in which units of CircuitBreaker.
library/net/netutil/breaker/breaker.go:24
Interface
Handler
Handler is used to handle log events, outputting them to stdio or sending them to remote services. See the "handlers" directory for implementations.
library/log/handler.go:50
Struct
Handlers
Handlers a bundle for hander with filter function.
library/log/handler.go:72
Struct
HttpClient
app/demo-api/internal/conf/conf.go:43
Struct
JSON
JSON common json struct.
library/render/render.go:21
TypeAlias
Level
Level of severity.
library/log/level.go:4
Struct
MySQL
app/demo-api/internal/conf/conf.go:39
Interface
ObjectEncoder
ObjectEncoder is a strongly-typed, encoding-agnostic interface for adding a map- or struct-like object to the logging context. Like maps, ObjectEncode
library/log/internal/core/encoder.go:15
Interface
ObjectMarshaler
ObjectMarshaler allows user-defined types to efficiently add themselves to the logging context, and to selectively omit information which shouldn't be
library/log/internal/core/encoder.go:55
FuncType
ObjectMarshalerFunc
ObjectMarshalerFunc is a type adapter that turns a function into an ObjectMarshaler.
library/log/internal/core/encoder.go:61
FuncType
Option
Option filewriter option
library/log/internal/filewriter/option.go:33
Struct
Pool
Pool.
library/cache/redis/redis.go:10
Struct
Pool
A Pool is a type-safe wrapper around a sync.Pool.
library/log/internal/core/pool.go:6
Struct
Pool
library/net/rpc/pool.go:15
Interface
PrimitiveArrayEncoder
PrimitiveArrayEncoder is the subset of the ArrayEncoder interface that deals only in Go's built-in types. It's included only so that Duration- and Tim
library/log/internal/core/encoder.go:108
Interface
Render
Render render log output
library/log/pattern.go:13
Struct
Row
Row row.
library/database/sql/sql.go:57
Struct
Rows
Rows rows.
library/database/sql/sql.go:88
Struct
Service
Service struct
app/demo-api/internal/service/service.go:10
Struct
StdoutHandler
StdoutHandler stdout log middleware
library/log/stdout.go:13
Struct
Stmt
Stmt prepared stmt.
library/database/sql/sql.go:106
Struct
Student
app/demo-api/internal/model/student.go:7
Struct
Student
app/demo-api/api/student.go:3
Struct
Teacher
app/demo-api/internal/model/teacher.go:7
FuncType
TimeEncoder
A TimeEncoder serializes a time.Time to a primitive type.
library/log/internal/core/encoder.go:168
Struct
Tx
Tx transaction.
library/database/sql/sql.go:49
TypeAlias
Verbose
Verbose is a boolean type that implements Info, Infov (like Printf) etc.
library/log/level.go:7
Struct
conn
conn database connection
library/database/sql/sql.go:43
Struct
fieldSpec
library/cache/redis/scan.go:248
Struct
greeterServer
server is used to implement helloworld.GreeterServer.
library/net/rpc/client_test.go:19
Struct
jsonEncoder
library/log/internal/core/json_encoder.go:37
TypeAlias
logFilter
library/log/log.go:82
Struct
option
library/log/internal/filewriter/option.go:21
Struct
ormLog
library/database/orm/orm.go:24
Struct
pattern
library/log/pattern.go:66
Struct
rotateItem
library/log/internal/filewriter/filewriter.go:38
Struct
s
app/demo-api/docs/docs.go:152
Struct
structSpec
library/cache/redis/scan.go:254
Struct
swaggerInfo
app/demo-api/docs/docs.go:141
Struct
wrapFile
library/log/internal/filewriter/filewriter.go:97