Documentation ¶
Overview ¶
Package mnemosynerpc ...
Package mnemosynerpc is a generated protocol buffer package.
It is generated from these files:
session.proto
It has these top-level messages:
Session GetRequest GetResponse ContextResponse ListRequest ListResponse ExistsRequest ExistsResponse StartRequest StartResponse AbandonRequest AbandonResponse SetValueRequest SetValueResponse DeleteRequest DeleteResponse
Index ¶
- func RegisterSessionManagerServer(s *grpc.Server, srv SessionManagerServer)
- type AbandonRequest
- type AbandonResponse
- type ContextResponse
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetAccessToken() string
- func (m *DeleteRequest) GetExpireAtFrom() *google_protobuf.Timestamp
- func (m *DeleteRequest) GetExpireAtTo() *google_protobuf.Timestamp
- func (m *DeleteRequest) GetRefreshToken() string
- func (m *DeleteRequest) GetSubjectId() string
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- type DeleteResponse
- type ExistsRequest
- type ExistsResponse
- type GetRequest
- type GetResponse
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetExpireAtFrom() *google_protobuf.Timestamp
- func (m *ListRequest) GetExpireAtTo() *google_protobuf.Timestamp
- func (m *ListRequest) GetLimit() int64
- func (m *ListRequest) GetOffset() int64
- func (m *ListRequest) GetRefreshToken() string
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- type ListResponse
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (m *Session) GetAccessToken() string
- func (m *Session) GetBag() map[string]string
- func (m *Session) GetExpireAt() *google_protobuf.Timestamp
- func (m *Session) GetRefreshToken() string
- func (m *Session) GetSubjectClient() string
- func (m *Session) GetSubjectId() string
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) String() string
- func (s *Session) Token() (*oauth2.Token, error)
- type SessionManagerClient
- type SessionManagerServer
- type SetValueRequest
- func (*SetValueRequest) Descriptor() ([]byte, []int)
- func (m *SetValueRequest) GetAccessToken() string
- func (m *SetValueRequest) GetKey() string
- func (m *SetValueRequest) GetValue() string
- func (*SetValueRequest) ProtoMessage()
- func (m *SetValueRequest) Reset()
- func (m *SetValueRequest) String() string
- type SetValueResponse
- type StartRequest
- type StartResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSessionManagerServer ¶ added in v0.2.0
func RegisterSessionManagerServer(s *grpc.Server, srv SessionManagerServer)
Types ¶
type AbandonRequest ¶
type AbandonRequest struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
}
func (*AbandonRequest) Descriptor ¶
func (*AbandonRequest) Descriptor() ([]byte, []int)
func (*AbandonRequest) GetAccessToken ¶
func (m *AbandonRequest) GetAccessToken() string
func (*AbandonRequest) ProtoMessage ¶
func (*AbandonRequest) ProtoMessage()
func (*AbandonRequest) Reset ¶
func (m *AbandonRequest) Reset()
func (*AbandonRequest) String ¶
func (m *AbandonRequest) String() string
type AbandonResponse ¶
type AbandonResponse struct {
Abandoned bool `protobuf:"varint,1,opt,name=abandoned" json:"abandoned,omitempty"`
}
func (*AbandonResponse) Descriptor ¶
func (*AbandonResponse) Descriptor() ([]byte, []int)
func (*AbandonResponse) GetAbandoned ¶ added in v0.8.4
func (m *AbandonResponse) GetAbandoned() bool
func (*AbandonResponse) ProtoMessage ¶
func (*AbandonResponse) ProtoMessage()
func (*AbandonResponse) Reset ¶
func (m *AbandonResponse) Reset()
func (*AbandonResponse) String ¶
func (m *AbandonResponse) String() string
type ContextResponse ¶
type ContextResponse struct {
Session *Session `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"`
}
func (*ContextResponse) Descriptor ¶
func (*ContextResponse) Descriptor() ([]byte, []int)
func (*ContextResponse) GetSession ¶
func (m *ContextResponse) GetSession() *Session
func (*ContextResponse) ProtoMessage ¶
func (*ContextResponse) ProtoMessage()
func (*ContextResponse) Reset ¶
func (m *ContextResponse) Reset()
func (*ContextResponse) String ¶
func (m *ContextResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"` ExpireAtFrom *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=expire_at_from,json=expireAtFrom" json:"expire_at_from,omitempty"` ExpireAtTo *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expire_at_to,json=expireAtTo" json:"expire_at_to,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken" json:"refresh_token,omitempty"` SubjectId string `protobuf:"bytes,5,opt,name=subject_id,json=subjectId" json:"subject_id,omitempty"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetAccessToken ¶
func (m *DeleteRequest) GetAccessToken() string
func (*DeleteRequest) GetExpireAtFrom ¶
func (m *DeleteRequest) GetExpireAtFrom() *google_protobuf.Timestamp
func (*DeleteRequest) GetExpireAtTo ¶
func (m *DeleteRequest) GetExpireAtTo() *google_protobuf.Timestamp
func (*DeleteRequest) GetRefreshToken ¶ added in v0.8.4
func (m *DeleteRequest) GetRefreshToken() string
func (*DeleteRequest) GetSubjectId ¶ added in v0.8.4
func (m *DeleteRequest) GetSubjectId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) GetCount ¶ added in v0.8.4
func (m *DeleteResponse) GetCount() int64
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
type ExistsRequest ¶
type ExistsRequest struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
}
func (*ExistsRequest) Descriptor ¶
func (*ExistsRequest) Descriptor() ([]byte, []int)
func (*ExistsRequest) GetAccessToken ¶
func (m *ExistsRequest) GetAccessToken() string
func (*ExistsRequest) ProtoMessage ¶
func (*ExistsRequest) ProtoMessage()
func (*ExistsRequest) Reset ¶
func (m *ExistsRequest) Reset()
func (*ExistsRequest) String ¶
func (m *ExistsRequest) String() string
type ExistsResponse ¶
type ExistsResponse struct {
Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"`
}
func (*ExistsResponse) Descriptor ¶
func (*ExistsResponse) Descriptor() ([]byte, []int)
func (*ExistsResponse) GetExists ¶ added in v0.8.4
func (m *ExistsResponse) GetExists() bool
func (*ExistsResponse) ProtoMessage ¶
func (*ExistsResponse) ProtoMessage()
func (*ExistsResponse) Reset ¶
func (m *ExistsResponse) Reset()
func (*ExistsResponse) String ¶
func (m *ExistsResponse) String() string
type GetRequest ¶
type GetRequest struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
}
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetAccessToken ¶
func (m *GetRequest) GetAccessToken() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
type GetResponse ¶
type GetResponse struct {
Session *Session `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"`
}
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetSession ¶
func (m *GetResponse) GetSession() *Session
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
type ListRequest ¶
type ListRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset" json:"offset,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"` ExpireAtFrom *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expire_at_from,json=expireAtFrom" json:"expire_at_from,omitempty"` ExpireAtTo *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=expire_at_to,json=expireAtTo" json:"expire_at_to,omitempty"` RefreshToken string `protobuf:"bytes,5,opt,name=refresh_token,json=refreshToken" json:"refresh_token,omitempty"` }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetExpireAtFrom ¶
func (m *ListRequest) GetExpireAtFrom() *google_protobuf.Timestamp
func (*ListRequest) GetExpireAtTo ¶
func (m *ListRequest) GetExpireAtTo() *google_protobuf.Timestamp
func (*ListRequest) GetLimit ¶ added in v0.8.4
func (m *ListRequest) GetLimit() int64
func (*ListRequest) GetOffset ¶ added in v0.8.4
func (m *ListRequest) GetOffset() int64
func (*ListRequest) GetRefreshToken ¶ added in v0.8.4
func (m *ListRequest) GetRefreshToken() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
type ListResponse ¶
type ListResponse struct {
Sessions []*Session `protobuf:"bytes,1,rep,name=sessions" json:"sessions,omitempty"`
}
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetSessions ¶
func (m *ListResponse) GetSessions() []*Session
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
type Session ¶
type Session struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"` SubjectId string `protobuf:"bytes,2,opt,name=subject_id,json=subjectId" json:"subject_id,omitempty"` SubjectClient string `protobuf:"bytes,3,opt,name=subject_client,json=subjectClient" json:"subject_client,omitempty"` Bag map[string]string `` /* 126-byte string literal not displayed */ ExpireAt *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=expire_at,json=expireAt" json:"expire_at,omitempty"` RefreshToken string `protobuf:"bytes,6,opt,name=refresh_token,json=refreshToken" json:"refresh_token,omitempty"` }
func (*Session) Descriptor ¶
func (*Session) GetAccessToken ¶
func (*Session) GetExpireAt ¶
func (m *Session) GetExpireAt() *google_protobuf.Timestamp
func (*Session) GetRefreshToken ¶ added in v0.8.4
func (*Session) GetSubjectClient ¶ added in v0.8.4
func (*Session) GetSubjectId ¶ added in v0.8.4
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
type SessionManagerClient ¶ added in v0.2.0
type SessionManagerClient interface { Context(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*ContextResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Exists(ctx context.Context, in *ExistsRequest, opts ...grpc.CallOption) (*ExistsResponse, error) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) Abandon(ctx context.Context, in *AbandonRequest, opts ...grpc.CallOption) (*AbandonResponse, error) SetValue(ctx context.Context, in *SetValueRequest, opts ...grpc.CallOption) (*SetValueResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
func NewSessionManagerClient ¶ added in v0.2.0
func NewSessionManagerClient(cc *grpc.ClientConn) SessionManagerClient
type SessionManagerServer ¶ added in v0.2.0
type SessionManagerServer interface { Context(context.Context, *google_protobuf1.Empty) (*ContextResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Exists(context.Context, *ExistsRequest) (*ExistsResponse, error) Start(context.Context, *StartRequest) (*StartResponse, error) Abandon(context.Context, *AbandonRequest) (*AbandonResponse, error) SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) }
type SetValueRequest ¶
type SetValueRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"` Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` }
func (*SetValueRequest) Descriptor ¶
func (*SetValueRequest) Descriptor() ([]byte, []int)
func (*SetValueRequest) GetAccessToken ¶
func (m *SetValueRequest) GetAccessToken() string
func (*SetValueRequest) GetKey ¶ added in v0.8.4
func (m *SetValueRequest) GetKey() string
func (*SetValueRequest) GetValue ¶ added in v0.8.4
func (m *SetValueRequest) GetValue() string
func (*SetValueRequest) ProtoMessage ¶
func (*SetValueRequest) ProtoMessage()
func (*SetValueRequest) Reset ¶
func (m *SetValueRequest) Reset()
func (*SetValueRequest) String ¶
func (m *SetValueRequest) String() string
type SetValueResponse ¶
type SetValueResponse struct {
Bag map[string]string `` /* 126-byte string literal not displayed */
}
func (*SetValueResponse) Descriptor ¶
func (*SetValueResponse) Descriptor() ([]byte, []int)
func (*SetValueResponse) GetBag ¶
func (m *SetValueResponse) GetBag() map[string]string
func (*SetValueResponse) ProtoMessage ¶
func (*SetValueResponse) ProtoMessage()
func (*SetValueResponse) Reset ¶
func (m *SetValueResponse) Reset()
func (*SetValueResponse) String ¶
func (m *SetValueResponse) String() string
type StartRequest ¶
type StartRequest struct {
Session *Session `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"`
}
func (*StartRequest) Descriptor ¶
func (*StartRequest) Descriptor() ([]byte, []int)
func (*StartRequest) GetSession ¶ added in v0.5.0
func (m *StartRequest) GetSession() *Session
func (*StartRequest) ProtoMessage ¶
func (*StartRequest) ProtoMessage()
func (*StartRequest) Reset ¶
func (m *StartRequest) Reset()
func (*StartRequest) String ¶
func (m *StartRequest) String() string
type StartResponse ¶
type StartResponse struct {
Session *Session `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"`
}
func (*StartResponse) Descriptor ¶
func (*StartResponse) Descriptor() ([]byte, []int)
func (*StartResponse) GetSession ¶
func (m *StartResponse) GetSession() *Session
func (*StartResponse) ProtoMessage ¶
func (*StartResponse) ProtoMessage()
func (*StartResponse) Reset ¶
func (m *StartResponse) Reset()
func (*StartResponse) String ¶
func (m *StartResponse) String() string
Click to show internal directories.
Click to hide internal directories.