This repository has been archived on 2022-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
lrpc/internal/types/types.go

20 lines
349 B
Go
Raw Normal View History

2022-05-01 08:39:22 +00:00
package types
// Request represents a request sent to the server
type Request struct {
ID string
Receiver string
Method string
Arg any
}
// Response represents a response returned by the server
type Response struct {
2022-05-01 18:34:50 +00:00
ID string
2022-05-01 18:33:55 +00:00
ChannelDone bool
2022-05-01 18:34:50 +00:00
IsChannel bool
IsError bool
Error string
Return any
2022-05-01 08:39:22 +00:00
}