MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / NewUserExampleServer

Function NewUserExampleServer

internal/service/userExample.go:40–47  ·  view source on GitHub ↗

NewUserExampleServer create a new service

()

Source from the content-addressed store, hash-verified

38
39// NewUserExampleServer create a new service
40func NewUserExampleServer() serverNameExampleV1.UserExampleServer {
41 return &userExample{
42 iDao: dao.NewUserExampleDao(
43 database.GetDB(), // todo show db driver name here
44 cache.NewUserExampleCache(database.GetCacheType()),
45 ),
46 }
47}
48
49// Create a new userExample
50func (s *userExample) Create(ctx context.Context, req *serverNameExampleV1.CreateUserExampleRequest) (*serverNameExampleV1.CreateUserExampleReply, error) {

Callers 1

initFunction · 0.85

Calls 4

NewUserExampleDaoFunction · 0.92
GetDBFunction · 0.92
NewUserExampleCacheFunction · 0.92
GetCacheTypeFunction · 0.92

Tested by

no test coverage detected