[Home](./index.md) > [tsrpc-proto](./tsrpc-proto.md) ## tsrpc-proto package ## Classes | Class | Description | | --- | --- | | [TsrpcError](./tsrpc-proto.tsrpcerror.md) | A unified Error that returned by TSRPC server or client | ## Enumerations | Enumeration | Description | | --- | --- | | [TsrpcErrorType](./tsrpc-proto.tsrpcerrortype.md) | | ## Functions | Function | Description | | --- | --- | | [setLogLevel(logger, logLevel)](./tsrpc-proto.setloglevel.md) | | ## Interfaces | Interface | Description | | --- | --- | | [ApiReturnError](./tsrpc-proto.apireturnerror.md) | Unified error, include network error, business error, code exception etc. | | [ApiReturnSucc](./tsrpc-proto.apireturnsucc.md) | Successful by call.succ() | | [ApiServiceDef](./tsrpc-proto.apiservicedef.md) | Send request and wait for response | | [BaseServiceDef](./tsrpc-proto.baseservicedef.md) | | | [BaseServiceType](./tsrpc-proto.baseservicetype.md) | API service request and response type, and Msg service type. For coding auto hint. | | [Logger](./tsrpc-proto.logger.md) | An abstract logger interface, which can be used to customize log behaviour. Usually, you can pass console for convinience. Or you can write your own implementation, for example, to report to a log system, or hide some log output. | | [MsgServiceDef](./tsrpc-proto.msgservicedef.md) | Send or listen specific data, without waiting for response. | | [ServerInputData](./tsrpc-proto.serverinputdata.md) | Basic transport data unit, which represents data that server received, which should be sent by client.callApi or client.sendMsg. | | [ServerOutputData](./tsrpc-proto.serveroutputdata.md) | Basic transport data unit, which represents data that server sent by call.succ or call.error or conn.sendMsg. | | [ServiceProto](./tsrpc-proto.serviceproto.md) | TSRPC Server Protocol Definitions | | [TsrpcErrorData](./tsrpc-proto.tsrpcerrordata.md) | | ## Variables | Variable | Description | | --- | --- | | [TransportDataProto](./tsrpc-proto.transportdataproto.md) | | ## Type Aliases | Type Alias | Description | | --- | --- | | [ApiReturn](./tsrpc-proto.apireturn.md) | The return of client.callApi() | | [LogLevel](./tsrpc-proto.loglevel.md) | | | [ServiceDef](./tsrpc-proto.servicedef.md) | |