Request contains information about the incoming request.
| 18 | |
| 19 | // Request contains information about the incoming request. |
| 20 | type Request struct { |
| 21 | // ID is an unique string, which may be used for tracing the request. |
| 22 | ID string |
| 23 | |
| 24 | // Method defines the method name which is invoked by the incoming request. |
| 25 | Method string |
| 26 | |
| 27 | // Username defines the username which the incoming request is bound to. |
| 28 | // This is authenticated and validated if authentication is enabled. |
| 29 | Username string |
| 30 | |
| 31 | // Args defines the incoming arguments for the given method. |
| 32 | Args *dnode.Partial |
| 33 | |
| 34 | // LocalKite defines a context for the local kite. |
| 35 | LocalKite *Kite |
| 36 | |
| 37 | // Client defines a context for the remote kite. |
| 38 | Client *Client |
| 39 | |
| 40 | // Auth stores the authentication information for the incoming request and |
| 41 | // the type of authentication. This is not used when authentication is disabled. |
| 42 | Auth *Auth |
| 43 | |
| 44 | // Context holds a context that used by the current ServeKite handler. Any |
| 45 | // items added to the Context can be fetched from other handlers in the |
| 46 | // chain. This is useful with PreHandle and PostHandle handlers to pass |
| 47 | // data between handlers. |
| 48 | // |
| 49 | // The context is canceled when client has disconnected or session |
| 50 | // was prematurely terminated. |
| 51 | Context context.Context |
| 52 | } |
| 53 | |
| 54 | // Response is the type of the object that is returned from request handlers |
| 55 | // and the type of only argument that is passed to callback functions. |
nothing calls this directly
no outgoing calls
no test coverage detected