MCPcopy Create free account

hub / github.com/PacktPublishing/gRPC-Go-for-Professionals / functions

Functions178 in github.com/PacktPublishing/gRPC-Go-for-Professionals

MethodaddTask
(description string, dueDate time.Time)
chapter8/server/db.go:7
MethodaddTask
addTask appends a Task, generated from description and dueDate, to the underlying array. It never returns an error but a real database might!
chapter6/server/in_memory.go:25
MethodaddTask
(description string, dueDate time.Time)
chapter6/server/db.go:7
MethodaddTask
addTask appends a Task, generated from description and dueDate, to the underlying array. It never returns an error but a real database might!
chapter9/server/in_memory.go:25
MethodaddTask
(description string, dueDate time.Time)
chapter9/server/fake_db.go:30
Methodapply
(do *testOptions)
chapter9/server/test_options.go:19
FunctionbufDialer
(context.Context, string)
chapter9/server/server_test.go:39
MethoddeleteTask
deleteTask deletes a task with task.Id == id in the underlying array. If a task is not found with the given id, it returns an error.
chapter7/server/in_memory.go:66
MethoddeleteTask
(id uint64)
chapter7/server/db.go:10
MethoddeleteTask
deleteTask deletes a task with task.Id == id in the underlying array. If a task is not found with the given id, it returns an error.
chapter5/server/in_memory.go:66
MethoddeleteTask
(id uint64)
chapter5/server/db.go:10
MethoddeleteTask
deleteTask deletes a task with task.Id == id in the underlying array. If a task is not found with the given id, it returns an error.
chapter8/server/in_memory.go:66
MethoddeleteTask
(id uint64)
chapter8/server/db.go:10
MethoddeleteTask
deleteTask deletes a task with task.Id == id in the underlying array. If a task is not found with the given id, it returns an error.
chapter6/server/in_memory.go:66
MethoddeleteTask
(id uint64)
chapter6/server/db.go:10
MethoddeleteTask
deleteTask deletes a task with task.Id == id in the underlying array. If a task is not found with the given id, it returns an error.
chapter9/server/in_memory.go:66
MethoddeleteTask
(id uint64)
chapter9/server/fake_db.go:61
MethodgetTasks
getTasks applies the function f to all the Tasks in the underlying array. If any error happens, it will short circuit and return the error.
chapter7/server/in_memory.go:39
MethodgetTasks
(f func(interface{}) error)
chapter7/server/db.go:8
MethodgetTasks
getTasks applies the function f to all the Tasks in the underlying array. If any error happens, it will short circuit and return the error.
chapter5/server/in_memory.go:39
MethodgetTasks
(f func(interface{}) error)
chapter5/server/db.go:8
MethodgetTasks
getTasks applies the function f to all the Tasks in the underlying array. If any error happens, it will short circuit and return the error.
chapter8/server/in_memory.go:39
MethodgetTasks
(f func(interface{}) error)
chapter8/server/db.go:8
MethodgetTasks
getTasks applies the function f to all the Tasks in the underlying array. If any error happens, it will short circuit and return the error.
chapter6/server/in_memory.go:39
MethodgetTasks
(f func(interface{}) error)
chapter6/server/db.go:8
MethodgetTasks
getTasks applies the function f to all the Tasks in the underlying array. If any error happens, it will short circuit and return the error.
chapter9/server/in_memory.go:39
MethodgetTasks
(f func(interface{}) error)
chapter9/server/fake_db.go:39
Functioninit
()
chapter2/account.pb.go:190
Functioninit
init is called whenever the tests are called. It creates the lis (bufconn.Listener) and initialize the server by registering TodoService.
chapter9/server/server_test.go:22
Functionmain
()
chapter7/client/main.go:150
Functionmain
()
chapter7/server/main.go:16
Functionmain
()
chapter5/client/main.go:122
Functionmain
()
chapter5/server/main.go:14
Functionmain
()
helpers/tags.go:25
Functionmain
()
helpers/integers.go:28
Functionmain
()
helpers/gzip.go:40
Functionmain
()
helpers/split.go:25
Functionmain
()
chapter8/client/main.go:152
Functionmain
()
chapter8/server/main.go:78
Functionmain
()
chapter6/client/main.go:125
Functionmain
()
chapter6/server/main.go:14
Functionmain
()
chapter9/client/main.go:154
Functionmain
()
chapter9/server/main.go:89
Functionmain
()
chapter4/client/main.go:11
Functionmain
()
chapter4/server/main.go:11
Functionmain
()
chapter3/main.go:71
FunctionstreamAuthInterceptor
streamAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter7/client/interceptors.go:24
FunctionstreamAuthInterceptor
streamAuthInterceptor calls validateAuthToken to determine wether to continue with the current call or not.
chapter7/server/interceptors.go:58
FunctionstreamAuthInterceptor
streamAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter8/client/interceptors.go:24
FunctionstreamAuthInterceptor
streamAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter9/client/interceptors.go:24
FunctionstreamLogInterceptor
streamLogInterceptor logs the endpoints being called.
chapter7/server/interceptors.go:73
FunctiontestAddTask
(t *testing.T)
chapter9/server/impl_test.go:158
FunctiontestAddTaskEmptyDescription
(t *testing.T)
chapter9/server/impl_test.go:107
FunctiontestAddTaskUnavailableDb
Tests
chapter9/server/impl_test.go:84
FunctiontestAddTaskWrongDueDate
(t *testing.T)
chapter9/server/impl_test.go:126
FunctiontestDeleteTasks
(t *testing.T)
chapter9/server/impl_test.go:411
FunctiontestDeleteTasksUnavailableDb
(t *testing.T)
chapter9/server/impl_test.go:379
FunctiontestListTasks
(t *testing.T)
chapter9/server/impl_test.go:210
FunctiontestListTasksUnavailableDb
(t *testing.T)
chapter9/server/impl_test.go:180
FunctiontestUpdateTasks
(t *testing.T)
chapter9/server/impl_test.go:287
FunctiontestUpdateTasksUnavailableDb
(t *testing.T)
chapter9/server/impl_test.go:253
FunctionunaryAuthInterceptor
unaryAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter7/client/interceptors.go:15
FunctionunaryAuthInterceptor
unaryAuthInterceptor calls validateAuthToken to determine wether to continue with the current call or not.
chapter7/server/interceptors.go:48
FunctionunaryAuthInterceptor
unaryAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter8/client/interceptors.go:15
FunctionunaryAuthInterceptor
unaryAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter9/client/interceptors.go:15
FunctionunaryLogInterceptor
unaryLogInterceptor logs the endpoints being called.
chapter7/server/interceptors.go:67
MethodupdateTask
updateTask applies an update of task to the first task that has the task.Id == id. If a task is not found with the given id, it returns an error.
chapter7/server/in_memory.go:50
MethodupdateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter7/server/db.go:9
MethodupdateTask
updateTask applies an update of task to the first task that has the task.Id == id. If a task is not found with the given id, it returns an error.
chapter5/server/in_memory.go:50
MethodupdateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter5/server/db.go:9
MethodupdateTask
updateTask applies an update of task to the first task that has the task.Id == id. If a task is not found with the given id, it returns an error.
chapter8/server/in_memory.go:50
MethodupdateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter8/server/db.go:9
MethodupdateTask
updateTask applies an update of task to the first task that has the task.Id == id. If a task is not found with the given id, it returns an error.
chapter6/server/in_memory.go:50
MethodupdateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter6/server/db.go:9
MethodupdateTask
updateTask applies an update of task to the first task that has the task.Id == id. If a task is not found with the given id, it returns an error.
chapter9/server/in_memory.go:50
MethodupdateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter9/server/fake_db.go:52
FunctionvalidateAuthToken
validateAuthToken asserts that the authTokenKey is present and associated with authTokenValue in the current context header. It return a context if th
chapter8/server/interceptors.go:23
FunctionvalidateAuthToken
validateAuthToken asserts that the authTokenKey is present and associated with authTokenValue in the current context header. It return a context if th
chapter9/server/interceptors.go:23
← previous101–178 of 178, ranked by callers