Preparing report...

Report for github.com/AlexStocks/getty

A+    Excellent!    Found 72 issues across 89 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint28%

Golint is a linter for Go source code.

    • getty/examples/micro/client/app/test.go
    • Line 25: warning: exported type TestService should have comment or be unexported (golint)
    • Line 29: warning: exported method TestService.Service should have comment or be unexported (golint)
    • Line 33: warning: exported method TestService.Version should have comment or be unexported (golint)
    • Line 37: warning: exported method TestService.Test should have comment or be unexported (golint)
    • Line 42: warning: exported method TestService.Add should have comment or be unexported (golint)
    • Line 47: warning: exported method TestService.Err should have comment or be unexported (golint)
    • Line 51: warning: exported method TestService.Event should have comment or be unexported (golint)
    • getty/examples/echo/udp-echo/server/app/echo.go
    • Line 65: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 78: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 93: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 103: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 120: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/examples/micro/client/app/main.go
    • Line 90: warning: exported type NodePartitionReplica should have comment or be unexported (golint)
    • Line 95: warning: exported function LoadBalance should have comment or be unexported (golint)
    • Line 192: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 193: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 203: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 204: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 215: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 216: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 227: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 228: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 241: warning: exported function Callback should have comment or be unexported (golint)
    • Line 252: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 253: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 265: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 266: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 278: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 279: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 296: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 297: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 307: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 308: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 319: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 320: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 331: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 332: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 348: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 349: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 361: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 362: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 374: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 375: warning: should not use basic type string as key in context.WithValue (golint)
    • getty/transport/options.go
    • Line 26: warning: exported type ServerOption should have comment or be unexported (golint)
    • Line 28: warning: exported type ServerOptions should have comment or be unexported (golint)
    • Line 42: warning: comment on exported function WithLocalAddress should be of the form "WithLocalAddress ..." (golint)
    • Line 49: warning: comment on exported function WithWebsocketServerPath should be of the form "WithWebsocketServerPath ..." (golint)
    • Line 56: warning: comment on exported function WithWebsocketServerCert should be of the form "WithWebsocketServerCert ..." (golint)
    • Line 63: warning: comment on exported function WithWebsocketServerPrivateKey should be of the form "WithWebsocketServerPrivateKey ..." (golint)
    • Line 70: warning: comment on exported function WithWebsocketServerRootCert should be of the form "WithWebsocketServerRootCert ..." (golint)
    • Line 77: warning: comment on exported function WithServerTaskPool should be of the form "WithServerTaskPool ..." (golint)
    • Line 84: warning: comment on exported function WithServerSslEnabled should be of the form "WithServerSslEnabled ..." (golint)
    • Line 91: warning: comment on exported function WithServerTlsConfigBuilder should be of the form "WithServerTlsConfigBuilder ..." (golint)
    • Line 102: warning: exported type ClientOption should have comment or be unexported (golint)
    • Line 104: warning: exported type ClientOptions should have comment or be unexported (golint)
    • Line 121: warning: comment on exported function WithServerAddress should be of the form "WithServerAddress ..." (golint)
    • Line 128: warning: comment on exported function WithReconnectInterval should be of the form "WithReconnectInterval ..." (golint)
    • Line 137: warning: comment on exported function WithClientTaskPool should be of the form "WithClientTaskPool ..." (golint)
    • Line 144: warning: comment on exported function WithConnectionNumber should be of the form "WithConnectionNumber ..." (golint)
    • Line 153: warning: comment on exported function WithRootCertificateFile should be of the form "WithRootCertificateFile ..." (golint)
    • Line 160: warning: comment on exported function WithClientSslEnabled should be of the form "WithClientSslEnabled ..." (golint)
    • Line 167: warning: comment on exported function WithClientTlsConfigBuilder should be of the form "WithClientTlsConfigBuilder ..." (golint)
    • getty/transport/session.go
    • Line 49: warning: exported const MaxWheelTimeSpan should have comment (or a comment on this block) or be unexported (golint)
    • Line 73: warning: exported function GetTimeWheel should have comment or be unexported (golint)
    • getty/examples/echo/ws-echo/server/app/echo.go
    • Line 60: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 73: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 88: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 98: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 115: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/examples/echo/ws-echo/client/app/echo.go
    • Line 60: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 73: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 88: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 98: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 115: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/rpc/client.go
    • Line 47: warning: exported type CallOptions should have comment or be unexported (golint)
    • Line 55: warning: exported type CallOption should have comment or be unexported (golint)
    • Line 57: warning: exported function WithCallRequestTimeout should have comment or be unexported (golint)
    • Line 63: warning: exported function WithCallResponseTimeout should have comment or be unexported (golint)
    • Line 69: warning: exported function WithCallMeta should have comment or be unexported (golint)
    • Line 78: warning: exported type CallResponse should have comment or be unexported (golint)
    • Line 86: warning: exported type AsyncCallback should have comment or be unexported (golint)
    • Line 88: warning: exported type Client should have comment or be unexported (golint)
    • Line 98: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 118: warning: comment on exported method Client.CallOneway should be of the form "CallOneway ..." (golint)
    • Line 129: warning: comment on exported method Client.Call should be of the form "Call ..." (golint)
    • Line 145: warning: exported method Client.AsyncCall should have comment or be unexported (golint)
    • Line 224: warning: exported method Client.Close should have comment or be unexported (golint)
    • getty/examples/echo/ws-echo/server/app/handler.go
    • Line 37: warning: exported type PackageHandler should have comment or be unexported (golint)
    • Line 45: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 47: warning: exported method MessageHandler.Handle should have comment or be unexported (golint)
    • Line 62: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 76: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 97: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 104: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 111: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 133: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/rpc/config.go
    • Line 33: warning: exported type GettySessionParam should have comment or be unexported (golint)
    • Line 52: warning: comment on exported type ServerConfig should be of the form "ServerConfig ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported type ClientConfig should be of the form "ClientConfig ..." (with optional leading article) (golint)
    • Line 104: warning: exported method GettySessionParam.CheckValidity should have comment or be unexported (golint)
    • Line 126: warning: exported method ClientConfig.CheckValidity should have comment or be unexported (golint)
    • Line 149: warning: exported method ServerConfig.CheckValidity should have comment or be unexported (golint)
    • getty/examples/echo/udp-echo/client/app/handler.go
    • Line 43: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 51: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 57: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 62: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 67: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 84: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/examples/echo/wss-echo/server/app/handler.go
    • Line 37: warning: exported type PackageHandler should have comment or be unexported (golint)
    • Line 45: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 47: warning: exported method MessageHandler.Handle should have comment or be unexported (golint)
    • Line 62: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 76: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 97: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 104: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 111: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 133: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/examples/echo/tcp-echo/client/app/handler.go
    • Line 44: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 50: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 56: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 61: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 66: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 77: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/rpc/listener.go
    • Line 57: warning: exported type RpcServerHandler should have comment or be unexported (golint)
    • Line 64: warning: exported function NewRpcServerHandler should have comment or be unexported (golint)
    • Line 72: warning: exported method RpcServerHandler.OnOpen should have comment or be unexported (golint)
    • Line 90: warning: exported method RpcServerHandler.OnError should have comment or be unexported (golint)
    • Line 97: warning: exported method RpcServerHandler.OnClose should have comment or be unexported (golint)
    • Line 104: warning: exported method RpcServerHandler.OnMessage should have comment or be unexported (golint)
    • Line 147: warning: exported method RpcServerHandler.OnCron should have comment or be unexported (golint)
    • Line 216: warning: exported type RpcClientHandler should have comment or be unexported (golint)
    • Line 220: warning: exported function NewRpcClientHandler should have comment or be unexported (golint)
    • Line 224: warning: exported method RpcClientHandler.OnOpen should have comment or be unexported (golint)
    • Line 229: warning: exported method RpcClientHandler.OnError should have comment or be unexported (golint)
    • Line 234: warning: exported method RpcClientHandler.OnClose should have comment or be unexported (golint)
    • Line 239: warning: exported method RpcClientHandler.OnMessage should have comment or be unexported (golint)
    • Line 280: warning: exported method RpcClientHandler.OnCron should have comment or be unexported (golint)
    • getty/rpc/server.go
    • Line 35: warning: exported type Server should have comment or be unexported (golint)
    • Line 43: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 58: warning: exported method Server.Register should have comment or be unexported (golint)
    • Line 134: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 157: warning: exported method Server.Stop should have comment or be unexported (golint)
    • getty/examples/echo/wss-echo/server/app/echo.go
    • Line 60: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 73: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 88: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 98: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 115: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/examples/echo/tcp-echo/server/app/echo.go
    • Line 65: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 78: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 93: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 103: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 120: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/transport/getty.go
    • Line 60: warning: comment on exported type ReadWriter should be of the form "ReadWriter ..." (with optional leading article) (golint)
    • Line 99: warning: exported type CompressType should have comment or be unexported (golint)
    • Line 102: warning: exported const CompressNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 114: warning: exported type Connection should have comment or be unexported (golint)
    • Line 144: warning: exported var ErrSessionClosed should have comment or be unexported (golint)
    • Line 149: warning: exported type Session should have comment or be unexported (golint)
    • Line 185: warning: exported type EndPoint should have comment or be unexported (golint)
    • Line 199: warning: exported type Client should have comment or be unexported (golint)
    • getty/rpc/readwriter.go
    • Line 38: warning: exported type RpcServerPackageHandler should have comment or be unexported (golint)
    • Line 42: warning: exported function NewRpcServerPackageHandler should have comment or be unexported (golint)
    • Line 130: warning: exported type RpcClientPackageHandler should have comment or be unexported (golint)
    • getty/examples/micro/server/app/test.go
    • Line 25: warning: exported type TestService should have comment or be unexported (golint)
    • Line 29: warning: exported method TestService.Service should have comment or be unexported (golint)
    • Line 33: warning: exported method TestService.Version should have comment or be unexported (golint)
    • Line 37: warning: exported method TestService.Test should have comment or be unexported (golint)
    • Line 42: warning: exported method TestService.Add should have comment or be unexported (golint)
    • Line 47: warning: exported method TestService.Err should have comment or be unexported (golint)
    • Line 51: warning: exported method TestService.Event should have comment or be unexported (golint)
    • getty/examples/echo/wss-echo/client/app/echo.go
    • Line 60: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 73: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 88: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 98: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 115: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/examples/echo/udp-echo/server/app/handler.go
    • Line 33: warning: exported const WritePkgTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type PackageHandler should have comment or be unexported (golint)
    • Line 52: warning: exported type HeartbeatHandler should have comment or be unexported (golint)
    • Line 54: warning: exported method HeartbeatHandler.Handle should have comment or be unexported (golint)
    • Line 78: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 80: warning: exported method MessageHandler.Handle should have comment or be unexported (golint)
    • Line 96: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 111: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 132: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 139: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 146: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 174: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/transport/client.go
    • Line 104: warning: comment on exported function NewTCPClient should be of the form "NewTCPClient ..." (golint)
    • Line 109: warning: comment on exported function NewUDPClient should be of the form "NewUDPClient ..." (golint)
    • Line 114: warning: comment on exported function NewWSClient should be of the form "NewWSClient ..." (golint)
    • getty/examples/echo/tcp-echo/client/app/echo.go
    • Line 65: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 78: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 93: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 103: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 120: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/examples/echo/ws-echo/client/app/handler.go
    • Line 44: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 50: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 56: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 61: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 66: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 77: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/examples/echo/wss-echo/client/app/handler.go
    • Line 44: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 50: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 56: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 61: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 66: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 77: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/examples/echo/tcp-echo/server/app/handler.go
    • Line 32: warning: exported const WritePkgTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type PackageHandler should have comment or be unexported (golint)
    • Line 50: warning: exported type HeartbeatHandler should have comment or be unexported (golint)
    • Line 52: warning: exported method HeartbeatHandler.Handle should have comment or be unexported (golint)
    • Line 67: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 69: warning: exported method MessageHandler.Handle should have comment or be unexported (golint)
    • Line 84: warning: exported type EchoMessageHandler should have comment or be unexported (golint)
    • Line 99: warning: exported method EchoMessageHandler.OnOpen should have comment or be unexported (golint)
    • Line 120: warning: exported method EchoMessageHandler.OnError should have comment or be unexported (golint)
    • Line 127: warning: exported method EchoMessageHandler.OnClose should have comment or be unexported (golint)
    • Line 134: warning: exported method EchoMessageHandler.OnMessage should have comment or be unexported (golint)
    • Line 156: warning: exported method EchoMessageHandler.OnCron should have comment or be unexported (golint)
    • getty/rpc/codec.go
    • Line 67: warning: exported type ErrorCode should have comment or be unexported (golint)
    • Line 70: warning: exported const GettyOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported type CodecType should have comment or be unexported (golint)
    • Line 81: warning: exported const CodecUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported var Codecs should have comment or be unexported (golint)
    • Line 107: warning: exported method CodecType.CheckValidity should have comment or be unexported (golint)
    • Line 115: warning: exported function GetCodecType should have comment or be unexported (golint)
    • Line 130: warning: exported type Codec should have comment or be unexported (golint)
    • Line 135: warning: exported type JSONCodec should have comment or be unexported (golint)
    • Line 141: warning: exported method JSONCodec.Encode should have comment or be unexported (golint)
    • Line 146: warning: exported method JSONCodec.Decode should have comment or be unexported (golint)
    • Line 151: warning: exported type PBCodec should have comment or be unexported (golint)
    • Line 200: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 210: warning: exported type RPCPackage should have comment or be unexported (golint)
    • Line 219: warning: exported type MagicType should have comment or be unexported (golint)
    • Line 220: warning: exported type LogIDType should have comment or be unexported (golint)
    • Line 221: warning: exported type SequenceType should have comment or be unexported (golint)
    • Line 222: warning: exported type ServiceIDType should have comment or be unexported (golint)
    • Line 223: warning: exported type PkgLenType should have comment or be unexported (golint)
    • Line 226: warning: exported type GettyPackageHeader should have comment or be unexported (golint)
    • Line 238: warning: exported type GettyPackage should have comment or be unexported (golint)
    • Line 248: warning: exported method GettyPackage.Marshal should have comment or be unexported (golint)
    • Line 278: warning: exported method GettyPackage.Unmarshal should have comment or be unexported (golint)
    • Line 312: warning: exported type GettyRPCHeaderLenType should have comment or be unexported (golint)
    • Line 321: warning: exported type GettyRPCRequest should have comment or be unexported (golint)
    • Line 326: warning: exported type GettyRPCRequestPackage should have comment or be unexported (golint)
    • Line 335: warning: exported function NewGettyRPCRequest should have comment or be unexported (golint)
    • Line 339: warning: exported method GettyRPCRequest.Marshal should have comment or be unexported (golint)
    • Line 372: warning: exported method GettyRPCRequest.Unmarshal should have comment or be unexported (golint)
    • Line 424: warning: exported method GettyRPCRequest.GetBody should have comment or be unexported (golint)
    • Line 428: warning: exported method GettyRPCRequest.GetHeader should have comment or be unexported (golint)
    • Line 440: warning: exported type GettyRPCResponse should have comment or be unexported (golint)
    • Line 445: warning: exported type GettyRPCResponsePackage should have comment or be unexported (golint)
    • Line 451: warning: exported function NewGettyRPCResponse should have comment or be unexported (golint)
    • Line 455: warning: exported method GettyRPCResponse.Marshal should have comment or be unexported (golint)
    • Line 496: warning: exported method GettyRPCResponse.Unmarshal should have comment or be unexported (golint)
    • Line 548: warning: exported method GettyRPCResponse.GetBody should have comment or be unexported (golint)
    • Line 552: warning: exported method GettyRPCResponse.GetHeader should have comment or be unexported (golint)
    • Line 560: warning: exported type PendingResponse should have comment or be unexported (golint)
    • Line 571: warning: exported function NewPendingResponse should have comment or be unexported (golint)
    • Line 578: warning: exported method PendingResponse.GetCallResponse should have comment or be unexported (golint)
    • getty/micro/config.go
    • Line 30: warning: exported const ErrIllegalConf should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type ServiceConfig should have comment or be unexported (golint)
    • getty/transport/const.go
    • Line 24: warning: exported type EndPointID should have comment or be unexported (golint)
    • Line 25: warning: exported type EndPointType should have comment or be unexported (golint)
    • Line 28: warning: exported const UDP_ENDPOINT should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: don't use underscores in Go names; var EndPointType_name should be EndPointTypeName (golint)
    • Line 38: warning: exported var EndPointType_name should have comment or be unexported (golint)
    • Line 49: warning: don't use underscores in Go names; var EndPointType_value should be EndPointTypeValue (golint)
    • Line 49: warning: exported var EndPointType_value should have comment or be unexported (golint)
    • getty/micro/client.go
    • Line 46: warning: exported type ClientOptions should have comment or be unexported (golint)
    • Line 50: warning: exported type ClientOption should have comment or be unexported (golint)
    • Line 52: warning: exported function WithServiceHash should have comment or be unexported (golint)
    • Line 63: warning: exported const DefaultMetaKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported function GetServiceNodeMetadata should have comment or be unexported (golint)
    • Line 78: warning: exported type Client should have comment or be unexported (golint)
    • Line 88: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 214: warning: exported method Client.CallOneway should have comment or be unexported (golint)
    • Line 225: warning: exported method Client.Call should have comment or be unexported (golint)
    • Line 236: warning: exported method Client.AsyncCall should have comment or be unexported (golint)
    • Line 246: warning: exported method Client.Close should have comment or be unexported (golint)
    • getty/examples/echo/udp-echo/client/app/echo.go
    • Line 65: warning: exported var ErrNotEnoughStream should have comment or be unexported (golint)
    • Line 78: warning: exported type EchoPkgHeader should have comment or be unexported (golint)
    • Line 93: warning: exported type EchoPackage should have comment or be unexported (golint)
    • Line 103: warning: exported method EchoPackage.Marshal should have comment or be unexported (golint)
    • Line 120: warning: exported method EchoPackage.Unmarshal should have comment or be unexported (golint)
    • getty/examples/rpc/service/test.go
    • Line 28: warning: exported type TestService should have comment or be unexported (golint)
    • Line 32: warning: exported method TestService.Service should have comment or be unexported (golint)
    • Line 36: warning: exported method TestService.Version should have comment or be unexported (golint)
    • Line 40: warning: exported method TestService.Test should have comment or be unexported (golint)
    • Line 45: warning: exported method TestService.Add should have comment or be unexported (golint)
    • Line 50: warning: exported method TestService.Err should have comment or be unexported (golint)
    • Line 54: warning: exported method TestService.Event should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell78%

Misspell Finds commonly misspelled English words