Versions in this module Expand all Collapse all v0 v0.1.1 Nov 7, 2020 v0.1.0 Nov 7, 2020 Changes in this version + var GoUnusedProtection__ int + var TSimpleSessionService_WRemoveSessionResult_Success_DEFAULT bool + type TErrorCode int64 + const TErrorCode_EFailed + const TErrorCode_ESuccess + func TErrorCodeFromString(s string) (TErrorCode, error) + func TErrorCodePtr(v TErrorCode) *TErrorCode + func (p *TErrorCode) Scan(value interface{}) error + func (p *TErrorCode) UnmarshalText(text []byte) error + func (p *TErrorCode) Value() (driver.Value, error) + func (p TErrorCode) MarshalText() ([]byte, error) + func (p TErrorCode) String() string + type TInternalSessionID int64 + func TInternalSessionIDPtr(v TInternalSessionID) *TInternalSessionID + type TSessionCode int64 + const TSessionCode_EFullRight + const TSessionCode_ENoSession + const TSessionCode_EPartialRight + const TSessionCode_ERightExtend100 + const TSessionCode_ERightExtend101 + const TSessionCode_ERightExtend102 + const TSessionCode_ERightExtend103 + const TSessionCode_ERightExtend104 + const TSessionCode_ERightExtend105 + const TSessionCode_ERightExtend106 + const TSessionCode_ERightExtend107 + const TSessionCode_ERightExtend108 + func TSessionCodeFromString(s string) (TSessionCode, error) + func TSessionCodePtr(v TSessionCode) *TSessionCode + func (p *TSessionCode) Scan(value interface{}) error + func (p *TSessionCode) UnmarshalText(text []byte) error + func (p *TSessionCode) Value() (driver.Value, error) + func (p TSessionCode) MarshalText() ([]byte, error) + func (p TSessionCode) String() string + type TSessionKey string + var TSessionKeyResult__Session_DEFAULT TSessionKey + func TSessionKeyPtr(v TSessionKey) *TSessionKey + type TSessionKeyResult_ struct + Error TErrorCode + Session *TSessionKey + var TSimpleSessionService_WCreateSessionResult_Success_DEFAULT *TSessionKeyResult_ + func NewTSessionKeyResult_() *TSessionKeyResult_ + func (p *TSessionKeyResult_) GetError() TErrorCode + func (p *TSessionKeyResult_) GetSession() TSessionKey + func (p *TSessionKeyResult_) IsSetSession() bool + func (p *TSessionKeyResult_) Read(iprot thrift.TProtocol) error + func (p *TSessionKeyResult_) ReadField1(iprot thrift.TProtocol) error + func (p *TSessionKeyResult_) ReadField2(iprot thrift.TProtocol) error + func (p *TSessionKeyResult_) String() string + func (p *TSessionKeyResult_) Write(oprot thrift.TProtocol) error + type TSimpleSessionService interface + GetSession func(ctx context.Context, sessionKey TSessionKey) (r *TUserResult_, err error) + type TSimpleSessionServiceClient struct + func NewTSimpleSessionServiceClient(c thrift.TClient) *TSimpleSessionServiceClient + func NewTSimpleSessionServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TSimpleSessionServiceClient + func NewTSimpleSessionServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TSimpleSessionServiceClient + func (p *TSimpleSessionServiceClient) Client_() thrift.TClient + func (p *TSimpleSessionServiceClient) GetSession(ctx context.Context, sessionKey TSessionKey) (r *TUserResult_, err error) + type TSimpleSessionServiceGetSessionArgs struct + SessionKey TSessionKey + func NewTSimpleSessionServiceGetSessionArgs() *TSimpleSessionServiceGetSessionArgs + func (p *TSimpleSessionServiceGetSessionArgs) GetSessionKey() TSessionKey + func (p *TSimpleSessionServiceGetSessionArgs) Read(iprot thrift.TProtocol) error + func (p *TSimpleSessionServiceGetSessionArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TSimpleSessionServiceGetSessionArgs) String() string + func (p *TSimpleSessionServiceGetSessionArgs) Write(oprot thrift.TProtocol) error + type TSimpleSessionServiceGetSessionResult struct + Success *TUserResult_ + func NewTSimpleSessionServiceGetSessionResult() *TSimpleSessionServiceGetSessionResult + func (p *TSimpleSessionServiceGetSessionResult) GetSuccess() *TUserResult_ + func (p *TSimpleSessionServiceGetSessionResult) IsSetSuccess() bool + func (p *TSimpleSessionServiceGetSessionResult) Read(iprot thrift.TProtocol) error + func (p *TSimpleSessionServiceGetSessionResult) ReadField0(iprot thrift.TProtocol) error + func (p *TSimpleSessionServiceGetSessionResult) String() string + func (p *TSimpleSessionServiceGetSessionResult) Write(oprot thrift.TProtocol) error + type TSimpleSessionServiceProcessor struct + func NewTSimpleSessionServiceProcessor(handler TSimpleSessionService) *TSimpleSessionServiceProcessor + func (p *TSimpleSessionServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction) + func (p *TSimpleSessionServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool) + func (p *TSimpleSessionServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) + func (p *TSimpleSessionServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction + type TSimpleSessionService_W interface + CreateSession func(ctx context.Context, userInfo *TUserSessionInfo) (r *TSessionKeyResult_, err error) + RemoveSession func(ctx context.Context, sessionKey TSessionKey) (r bool, err error) + type TSimpleSessionService_WClient struct + func NewTSimpleSessionService_WClient(c thrift.TClient) *TSimpleSessionService_WClient + func NewTSimpleSessionService_WClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TSimpleSessionService_WClient + func NewTSimpleSessionService_WClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TSimpleSessionService_WClient + func (p *TSimpleSessionService_WClient) CreateSession(ctx context.Context, userInfo *TUserSessionInfo) (r *TSessionKeyResult_, err error) + func (p *TSimpleSessionService_WClient) RemoveSession(ctx context.Context, sessionKey TSessionKey) (r bool, err error) + type TSimpleSessionService_WCreateSessionArgs struct + UserInfo *TUserSessionInfo + func NewTSimpleSessionService_WCreateSessionArgs() *TSimpleSessionService_WCreateSessionArgs + func (p *TSimpleSessionService_WCreateSessionArgs) GetUserInfo() *TUserSessionInfo + func (p *TSimpleSessionService_WCreateSessionArgs) IsSetUserInfo() bool + func (p *TSimpleSessionService_WCreateSessionArgs) Read(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WCreateSessionArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WCreateSessionArgs) String() string + func (p *TSimpleSessionService_WCreateSessionArgs) Write(oprot thrift.TProtocol) error + type TSimpleSessionService_WCreateSessionResult struct + Success *TSessionKeyResult_ + func NewTSimpleSessionService_WCreateSessionResult() *TSimpleSessionService_WCreateSessionResult + func (p *TSimpleSessionService_WCreateSessionResult) GetSuccess() *TSessionKeyResult_ + func (p *TSimpleSessionService_WCreateSessionResult) IsSetSuccess() bool + func (p *TSimpleSessionService_WCreateSessionResult) Read(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WCreateSessionResult) ReadField0(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WCreateSessionResult) String() string + func (p *TSimpleSessionService_WCreateSessionResult) Write(oprot thrift.TProtocol) error + type TSimpleSessionService_WProcessor struct + func NewTSimpleSessionService_WProcessor(handler TSimpleSessionService_W) *TSimpleSessionService_WProcessor + type TSimpleSessionService_WRemoveSessionArgs struct + SessionKey TSessionKey + func NewTSimpleSessionService_WRemoveSessionArgs() *TSimpleSessionService_WRemoveSessionArgs + func (p *TSimpleSessionService_WRemoveSessionArgs) GetSessionKey() TSessionKey + func (p *TSimpleSessionService_WRemoveSessionArgs) Read(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WRemoveSessionArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WRemoveSessionArgs) String() string + func (p *TSimpleSessionService_WRemoveSessionArgs) Write(oprot thrift.TProtocol) error + type TSimpleSessionService_WRemoveSessionResult struct + Success *bool + func NewTSimpleSessionService_WRemoveSessionResult() *TSimpleSessionService_WRemoveSessionResult + func (p *TSimpleSessionService_WRemoveSessionResult) GetSuccess() bool + func (p *TSimpleSessionService_WRemoveSessionResult) IsSetSuccess() bool + func (p *TSimpleSessionService_WRemoveSessionResult) Read(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WRemoveSessionResult) ReadField0(iprot thrift.TProtocol) error + func (p *TSimpleSessionService_WRemoveSessionResult) String() string + func (p *TSimpleSessionService_WRemoveSessionResult) Write(oprot thrift.TProtocol) error + type TUID int64 + func TUIDPtr(v TUID) *TUID + type TUserResult_ struct + Error TErrorCode + UserInfo *TUserSessionInfo + var TSimpleSessionServiceGetSessionResult_Success_DEFAULT *TUserResult_ + func NewTUserResult_() *TUserResult_ + func (p *TUserResult_) GetError() TErrorCode + func (p *TUserResult_) GetUserInfo() *TUserSessionInfo + func (p *TUserResult_) IsSetUserInfo() bool + func (p *TUserResult_) Read(iprot thrift.TProtocol) error + func (p *TUserResult_) ReadField1(iprot thrift.TProtocol) error + func (p *TUserResult_) ReadField2(iprot thrift.TProtocol) error + func (p *TUserResult_) String() string + func (p *TUserResult_) Write(oprot thrift.TProtocol) error + type TUserRights string + func TUserRightsPtr(v TUserRights) *TUserRights + type TUserSessionInfo struct + Code TSessionCode + Data string + DeviceInfo string + ExpiredTime int64 + Permissions TUserRights + UID TUID + Version int32 + var TSimpleSessionService_WCreateSessionArgs_UserInfo_DEFAULT *TUserSessionInfo + var TUserResult__UserInfo_DEFAULT *TUserSessionInfo + func NewTUserSessionInfo() *TUserSessionInfo + func (p *TUserSessionInfo) GetCode() TSessionCode + func (p *TUserSessionInfo) GetData() string + func (p *TUserSessionInfo) GetDeviceInfo() string + func (p *TUserSessionInfo) GetExpiredTime() int64 + func (p *TUserSessionInfo) GetPermissions() TUserRights + func (p *TUserSessionInfo) GetUID() TUID + func (p *TUserSessionInfo) GetVersion() int32 + func (p *TUserSessionInfo) Read(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) ReadField1(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) ReadField2(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) ReadField3(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) ReadField4(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) ReadField5(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) ReadField6(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) ReadField7(iprot thrift.TProtocol) error + func (p *TUserSessionInfo) String() string + func (p *TUserSessionInfo) Write(oprot thrift.TProtocol) error