Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/gRPC-Go-for-Professionals
/ functions
Functions
178 in github.com/PacktPublishing/gRPC-Go-for-Professionals
⨍
Functions
178
◇
Types & classes
27
Method
addTask
(description string, dueDate time.Time)
chapter8/server/db.go:7
Method
addTask
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
Method
addTask
(description string, dueDate time.Time)
chapter6/server/db.go:7
Method
addTask
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
Method
addTask
(description string, dueDate time.Time)
chapter9/server/fake_db.go:30
Method
apply
(do *testOptions)
chapter9/server/test_options.go:19
Function
bufDialer
(context.Context, string)
chapter9/server/server_test.go:39
Method
deleteTask
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
Method
deleteTask
(id uint64)
chapter7/server/db.go:10
Method
deleteTask
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
Method
deleteTask
(id uint64)
chapter5/server/db.go:10
Method
deleteTask
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
Method
deleteTask
(id uint64)
chapter8/server/db.go:10
Method
deleteTask
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
Method
deleteTask
(id uint64)
chapter6/server/db.go:10
Method
deleteTask
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
Method
deleteTask
(id uint64)
chapter9/server/fake_db.go:61
Method
getTasks
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
Method
getTasks
(f func(interface{}) error)
chapter7/server/db.go:8
Method
getTasks
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
Method
getTasks
(f func(interface{}) error)
chapter5/server/db.go:8
Method
getTasks
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
Method
getTasks
(f func(interface{}) error)
chapter8/server/db.go:8
Method
getTasks
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
Method
getTasks
(f func(interface{}) error)
chapter6/server/db.go:8
Method
getTasks
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
Method
getTasks
(f func(interface{}) error)
chapter9/server/fake_db.go:39
Function
init
()
chapter2/account.pb.go:190
Function
init
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
Function
main
()
chapter7/client/main.go:150
Function
main
()
chapter7/server/main.go:16
Function
main
()
chapter5/client/main.go:122
Function
main
()
chapter5/server/main.go:14
Function
main
()
helpers/tags.go:25
Function
main
()
helpers/integers.go:28
Function
main
()
helpers/gzip.go:40
Function
main
()
helpers/split.go:25
Function
main
()
chapter8/client/main.go:152
Function
main
()
chapter8/server/main.go:78
Function
main
()
chapter6/client/main.go:125
Function
main
()
chapter6/server/main.go:14
Function
main
()
chapter9/client/main.go:154
Function
main
()
chapter9/server/main.go:89
Function
main
()
chapter4/client/main.go:11
Function
main
()
chapter4/server/main.go:11
Function
main
()
chapter3/main.go:71
Function
streamAuthInterceptor
streamAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter7/client/interceptors.go:24
Function
streamAuthInterceptor
streamAuthInterceptor calls validateAuthToken to determine wether to continue with the current call or not.
chapter7/server/interceptors.go:58
Function
streamAuthInterceptor
streamAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter8/client/interceptors.go:24
Function
streamAuthInterceptor
streamAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter9/client/interceptors.go:24
Function
streamLogInterceptor
streamLogInterceptor logs the endpoints being called.
chapter7/server/interceptors.go:73
Function
testAddTask
(t *testing.T)
chapter9/server/impl_test.go:158
Function
testAddTaskEmptyDescription
(t *testing.T)
chapter9/server/impl_test.go:107
Function
testAddTaskUnavailableDb
Tests
chapter9/server/impl_test.go:84
Function
testAddTaskWrongDueDate
(t *testing.T)
chapter9/server/impl_test.go:126
Function
testDeleteTasks
(t *testing.T)
chapter9/server/impl_test.go:411
Function
testDeleteTasksUnavailableDb
(t *testing.T)
chapter9/server/impl_test.go:379
Function
testListTasks
(t *testing.T)
chapter9/server/impl_test.go:210
Function
testListTasksUnavailableDb
(t *testing.T)
chapter9/server/impl_test.go:180
Function
testUpdateTasks
(t *testing.T)
chapter9/server/impl_test.go:287
Function
testUpdateTasksUnavailableDb
(t *testing.T)
chapter9/server/impl_test.go:253
Function
unaryAuthInterceptor
unaryAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter7/client/interceptors.go:15
Function
unaryAuthInterceptor
unaryAuthInterceptor calls validateAuthToken to determine wether to continue with the current call or not.
chapter7/server/interceptors.go:48
Function
unaryAuthInterceptor
unaryAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter8/client/interceptors.go:15
Function
unaryAuthInterceptor
unaryAuthInterceptor is an interceptor automatically adding the auth token to a request.
chapter9/client/interceptors.go:15
Function
unaryLogInterceptor
unaryLogInterceptor logs the endpoints being called.
chapter7/server/interceptors.go:67
Method
updateTask
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
Method
updateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter7/server/db.go:9
Method
updateTask
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
Method
updateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter5/server/db.go:9
Method
updateTask
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
Method
updateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter8/server/db.go:9
Method
updateTask
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
Method
updateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter6/server/db.go:9
Method
updateTask
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
Method
updateTask
(id uint64, description string, dueDate time.Time, done bool)
chapter9/server/fake_db.go:52
Function
validateAuthToken
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
Function
validateAuthToken
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
← previous
101–178 of 178, ranked by callers