Documentation
¶
Overview ¶
Package abaeve_auth is a generated protocol buffer package.
It is generated from these files:
auth-srv.proto
It has these top-level messages:
AuthCreateRequest AuthCreateResponse AuthConfirmRequest AuthConfirmResponse GetRolesRequest AuthAdminRequest AuthAdminResponse CharactersResponse Character RoleResponse Role CorporationsResponse Corporation AlliancesResponse Alliance EntityAdminResponse AllianceAdminRequest CorporationAdminRequest CharacterAdminRequest RoleAdminRequest EntityQueryRequest
Index ¶
- Variables
- func AllianceAddTopic() string
- func AllianceDeleteTopic() string
- func CharacterAddTopic() string
- func CharacterDeleteTopic() string
- func CorporationAddTopic() string
- func CorporationDeleteTopic() string
- func RegisterEntityAdminHandler(s server.Server, hdlr EntityAdminHandler, opts ...server.HandlerOption)
- func RegisterEntityQueryHandler(s server.Server, hdlr EntityQueryHandler, opts ...server.HandlerOption)
- func RegisterUserAuthenticationAdminHandler(s server.Server, hdlr UserAuthenticationAdminHandler, ...)
- func RegisterUserAuthenticationHandler(s server.Server, hdlr UserAuthenticationHandler, opts ...server.HandlerOption)
- type Alliance
- type AllianceAdminRequest
- func (*AllianceAdminRequest) Descriptor() ([]byte, []int)
- func (m *AllianceAdminRequest) GetAlliance() *Alliance
- func (m *AllianceAdminRequest) GetOperation() EntityOperation
- func (*AllianceAdminRequest) ProtoMessage()
- func (m *AllianceAdminRequest) Reset()
- func (m *AllianceAdminRequest) String() string
- type AlliancesResponse
- type AuthAdminRequest
- func (*AuthAdminRequest) Descriptor() ([]byte, []int)
- func (m *AuthAdminRequest) GetEntityId() []int64
- func (m *AuthAdminRequest) GetEntityName() []string
- func (m *AuthAdminRequest) GetEntityTicker() []string
- func (m *AuthAdminRequest) GetEntityType() []EntityType
- func (m *AuthAdminRequest) GetRole() string
- func (*AuthAdminRequest) ProtoMessage()
- func (m *AuthAdminRequest) Reset()
- func (m *AuthAdminRequest) String() string
- type AuthAdminResponse
- func (*AuthAdminResponse) Descriptor() ([]byte, []int)
- func (m *AuthAdminResponse) GetEntityId() []int64
- func (m *AuthAdminResponse) GetEntityName() []string
- func (m *AuthAdminResponse) GetEntityType() []EntityType
- func (m *AuthAdminResponse) GetSuccess() bool
- func (*AuthAdminResponse) ProtoMessage()
- func (m *AuthAdminResponse) Reset()
- func (m *AuthAdminResponse) String() string
- type AuthConfirmRequest
- type AuthConfirmResponse
- func (*AuthConfirmResponse) Descriptor() ([]byte, []int)
- func (m *AuthConfirmResponse) GetCharacterName() string
- func (m *AuthConfirmResponse) GetRoles() []string
- func (m *AuthConfirmResponse) GetSuccess() bool
- func (*AuthConfirmResponse) ProtoMessage()
- func (m *AuthConfirmResponse) Reset()
- func (m *AuthConfirmResponse) String() string
- type AuthCreateRequest
- func (*AuthCreateRequest) Descriptor() ([]byte, []int)
- func (m *AuthCreateRequest) GetAlliance() *Alliance
- func (m *AuthCreateRequest) GetAuthScope() []string
- func (m *AuthCreateRequest) GetCharacter() *Character
- func (m *AuthCreateRequest) GetCorporation() *Corporation
- func (m *AuthCreateRequest) GetToken() string
- func (*AuthCreateRequest) ProtoMessage()
- func (m *AuthCreateRequest) Reset()
- func (m *AuthCreateRequest) String() string
- type AuthCreateResponse
- type Character
- type CharacterAdminRequest
- func (*CharacterAdminRequest) Descriptor() ([]byte, []int)
- func (m *CharacterAdminRequest) GetCharacter() *Character
- func (m *CharacterAdminRequest) GetOperation() EntityOperation
- func (*CharacterAdminRequest) ProtoMessage()
- func (m *CharacterAdminRequest) Reset()
- func (m *CharacterAdminRequest) String() string
- type CharactersResponse
- type Corporation
- func (*Corporation) Descriptor() ([]byte, []int)
- func (m *Corporation) GetAllianceId() int64
- func (m *Corporation) GetId() int64
- func (m *Corporation) GetName() string
- func (m *Corporation) GetTicker() string
- func (*Corporation) ProtoMessage()
- func (m *Corporation) Reset()
- func (m *Corporation) String() string
- type CorporationAdminRequest
- func (*CorporationAdminRequest) Descriptor() ([]byte, []int)
- func (m *CorporationAdminRequest) GetCorporation() *Corporation
- func (m *CorporationAdminRequest) GetOperation() EntityOperation
- func (*CorporationAdminRequest) ProtoMessage()
- func (m *CorporationAdminRequest) Reset()
- func (m *CorporationAdminRequest) String() string
- type CorporationsResponse
- type EntityAdmin
- func (h *EntityAdmin) AllianceUpdate(ctx context.Context, in *AllianceAdminRequest, out *EntityAdminResponse) error
- func (h *EntityAdmin) CharacterUpdate(ctx context.Context, in *CharacterAdminRequest, out *EntityAdminResponse) error
- func (h *EntityAdmin) CorporationUpdate(ctx context.Context, in *CorporationAdminRequest, out *EntityAdminResponse) error
- func (h *EntityAdmin) RoleUpdate(ctx context.Context, in *RoleAdminRequest, out *EntityAdminResponse) error
- type EntityAdminClient
- type EntityAdminHandler
- type EntityAdminResponse
- type EntityOperation
- type EntityQuery
- func (h *EntityQuery) GetAlliances(ctx context.Context, in *EntityQueryRequest, out *AlliancesResponse) error
- func (h *EntityQuery) GetCharacters(ctx context.Context, in *EntityQueryRequest, out *CharactersResponse) error
- func (h *EntityQuery) GetCorporations(ctx context.Context, in *EntityQueryRequest, out *CorporationsResponse) error
- func (h *EntityQuery) GetRoles(ctx context.Context, in *EntityQueryRequest, out *RoleResponse) error
- type EntityQueryClient
- type EntityQueryHandler
- type EntityQueryRequest
- type EntityType
- type GetRolesRequest
- type Role
- type RoleAdminRequest
- type RoleResponse
- type UserAuthentication
- func (h *UserAuthentication) Confirm(ctx context.Context, in *AuthConfirmRequest, out *AuthConfirmResponse) error
- func (h *UserAuthentication) Create(ctx context.Context, in *AuthCreateRequest, out *AuthCreateResponse) error
- func (h *UserAuthentication) GetRoles(ctx context.Context, in *GetRolesRequest, out *AuthConfirmResponse) error
- type UserAuthenticationAdmin
- func (h *UserAuthenticationAdmin) AllianceCharacterLeadershipRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) AllianceCharacterLeadershipRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) AllianceRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) AllianceRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CharacterRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CharacterRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CorporationAllianceRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CorporationAllianceRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CorporationCharacterLeadershipRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CorporationCharacterLeadershipRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CorporationRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- func (h *UserAuthenticationAdmin) CorporationRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
- type UserAuthenticationAdminClient
- type UserAuthenticationAdminHandler
- type UserAuthenticationClient
- type UserAuthenticationHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var EntityOperation_name = map[int32]string{
0: "ADD_OR_UPDATE",
1: "REMOVE",
}
View Source
var EntityOperation_value = map[string]int32{
"ADD_OR_UPDATE": 0,
"REMOVE": 1,
}
View Source
var EntityType_name = map[int32]string{
0: "ALLIANCE",
1: "CORPORATION",
2: "CHARACTER",
3: "ROLE",
}
View Source
var EntityType_value = map[string]int32{
"ALLIANCE": 0,
"CORPORATION": 1,
"CHARACTER": 2,
"ROLE": 3,
}
Functions ¶
func AllianceAddTopic ¶
func AllianceAddTopic() string
func AllianceDeleteTopic ¶
func AllianceDeleteTopic() string
func CharacterAddTopic ¶
func CharacterAddTopic() string
func CharacterDeleteTopic ¶
func CharacterDeleteTopic() string
func CorporationAddTopic ¶
func CorporationAddTopic() string
func CorporationDeleteTopic ¶
func CorporationDeleteTopic() string
func RegisterEntityAdminHandler ¶
func RegisterEntityAdminHandler(s server.Server, hdlr EntityAdminHandler, opts ...server.HandlerOption)
func RegisterEntityQueryHandler ¶
func RegisterEntityQueryHandler(s server.Server, hdlr EntityQueryHandler, opts ...server.HandlerOption)
func RegisterUserAuthenticationAdminHandler ¶
func RegisterUserAuthenticationAdminHandler(s server.Server, hdlr UserAuthenticationAdminHandler, opts ...server.HandlerOption)
func RegisterUserAuthenticationHandler ¶
func RegisterUserAuthenticationHandler(s server.Server, hdlr UserAuthenticationHandler, opts ...server.HandlerOption)
Types ¶
type Alliance ¶
type Alliance struct {
Id int64 `protobuf:"varint,1,opt,name=Id" json:"Id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
Ticker string `protobuf:"bytes,3,opt,name=Ticker" json:"Ticker,omitempty"`
}
func (*Alliance) Descriptor ¶
func (*Alliance) ProtoMessage ¶
func (*Alliance) ProtoMessage()
type AllianceAdminRequest ¶
type AllianceAdminRequest struct {
Alliance *Alliance `protobuf:"bytes,1,opt,name=Alliance" json:"Alliance,omitempty"`
Operation EntityOperation `protobuf:"varint,2,opt,name=Operation,enum=abaeve.auth.EntityOperation" json:"Operation,omitempty"`
}
func (*AllianceAdminRequest) Descriptor ¶
func (*AllianceAdminRequest) Descriptor() ([]byte, []int)
func (*AllianceAdminRequest) GetAlliance ¶
func (m *AllianceAdminRequest) GetAlliance() *Alliance
func (*AllianceAdminRequest) GetOperation ¶
func (m *AllianceAdminRequest) GetOperation() EntityOperation
func (*AllianceAdminRequest) ProtoMessage ¶
func (*AllianceAdminRequest) ProtoMessage()
func (*AllianceAdminRequest) Reset ¶
func (m *AllianceAdminRequest) Reset()
func (*AllianceAdminRequest) String ¶
func (m *AllianceAdminRequest) String() string
type AlliancesResponse ¶
type AlliancesResponse struct {
List []*Alliance `protobuf:"bytes,1,rep,name=List" json:"List,omitempty"`
}
func (*AlliancesResponse) Descriptor ¶
func (*AlliancesResponse) Descriptor() ([]byte, []int)
func (*AlliancesResponse) GetList ¶
func (m *AlliancesResponse) GetList() []*Alliance
func (*AlliancesResponse) ProtoMessage ¶
func (*AlliancesResponse) ProtoMessage()
func (*AlliancesResponse) Reset ¶
func (m *AlliancesResponse) Reset()
func (*AlliancesResponse) String ¶
func (m *AlliancesResponse) String() string
type AuthAdminRequest ¶
type AuthAdminRequest struct {
EntityId []int64 `protobuf:"varint,1,rep,packed,name=EntityId" json:"EntityId,omitempty"`
EntityName []string `protobuf:"bytes,2,rep,name=EntityName" json:"EntityName,omitempty"`
EntityTicker []string `protobuf:"bytes,3,rep,name=EntityTicker" json:"EntityTicker,omitempty"`
EntityType []EntityType `protobuf:"varint,4,rep,packed,name=EntityType,enum=abaeve.auth.EntityType" json:"EntityType,omitempty"`
Role string `protobuf:"bytes,5,opt,name=Role" json:"Role,omitempty"`
}
func (*AuthAdminRequest) Descriptor ¶
func (*AuthAdminRequest) Descriptor() ([]byte, []int)
func (*AuthAdminRequest) GetEntityId ¶
func (m *AuthAdminRequest) GetEntityId() []int64
func (*AuthAdminRequest) GetEntityName ¶
func (m *AuthAdminRequest) GetEntityName() []string
func (*AuthAdminRequest) GetEntityTicker ¶
func (m *AuthAdminRequest) GetEntityTicker() []string
func (*AuthAdminRequest) GetEntityType ¶
func (m *AuthAdminRequest) GetEntityType() []EntityType
func (*AuthAdminRequest) GetRole ¶
func (m *AuthAdminRequest) GetRole() string
func (*AuthAdminRequest) ProtoMessage ¶
func (*AuthAdminRequest) ProtoMessage()
func (*AuthAdminRequest) Reset ¶
func (m *AuthAdminRequest) Reset()
func (*AuthAdminRequest) String ¶
func (m *AuthAdminRequest) String() string
type AuthAdminResponse ¶
type AuthAdminResponse struct {
EntityId []int64 `protobuf:"varint,1,rep,packed,name=EntityId" json:"EntityId,omitempty"`
EntityName []string `protobuf:"bytes,2,rep,name=EntityName" json:"EntityName,omitempty"`
EntityType []EntityType `protobuf:"varint,3,rep,packed,name=EntityType,enum=abaeve.auth.EntityType" json:"EntityType,omitempty"`
Success bool `protobuf:"varint,4,opt,name=Success" json:"Success,omitempty"`
}
func (*AuthAdminResponse) Descriptor ¶
func (*AuthAdminResponse) Descriptor() ([]byte, []int)
func (*AuthAdminResponse) GetEntityId ¶
func (m *AuthAdminResponse) GetEntityId() []int64
func (*AuthAdminResponse) GetEntityName ¶
func (m *AuthAdminResponse) GetEntityName() []string
func (*AuthAdminResponse) GetEntityType ¶
func (m *AuthAdminResponse) GetEntityType() []EntityType
func (*AuthAdminResponse) GetSuccess ¶
func (m *AuthAdminResponse) GetSuccess() bool
func (*AuthAdminResponse) ProtoMessage ¶
func (*AuthAdminResponse) ProtoMessage()
func (*AuthAdminResponse) Reset ¶
func (m *AuthAdminResponse) Reset()
func (*AuthAdminResponse) String ¶
func (m *AuthAdminResponse) String() string
type AuthConfirmRequest ¶
type AuthConfirmRequest struct {
UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"`
AuthenticationCode string `protobuf:"bytes,2,opt,name=AuthenticationCode" json:"AuthenticationCode,omitempty"`
}
func (*AuthConfirmRequest) Descriptor ¶
func (*AuthConfirmRequest) Descriptor() ([]byte, []int)
func (*AuthConfirmRequest) GetAuthenticationCode ¶
func (m *AuthConfirmRequest) GetAuthenticationCode() string
func (*AuthConfirmRequest) GetUserId ¶
func (m *AuthConfirmRequest) GetUserId() string
func (*AuthConfirmRequest) ProtoMessage ¶
func (*AuthConfirmRequest) ProtoMessage()
func (*AuthConfirmRequest) Reset ¶
func (m *AuthConfirmRequest) Reset()
func (*AuthConfirmRequest) String ¶
func (m *AuthConfirmRequest) String() string
type AuthConfirmResponse ¶
type AuthConfirmResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
CharacterName string `protobuf:"bytes,2,opt,name=CharacterName" json:"CharacterName,omitempty"`
Roles []string `protobuf:"bytes,3,rep,name=Roles" json:"Roles,omitempty"`
}
func (*AuthConfirmResponse) Descriptor ¶
func (*AuthConfirmResponse) Descriptor() ([]byte, []int)
func (*AuthConfirmResponse) GetCharacterName ¶
func (m *AuthConfirmResponse) GetCharacterName() string
func (*AuthConfirmResponse) GetRoles ¶
func (m *AuthConfirmResponse) GetRoles() []string
func (*AuthConfirmResponse) GetSuccess ¶
func (m *AuthConfirmResponse) GetSuccess() bool
func (*AuthConfirmResponse) ProtoMessage ¶
func (*AuthConfirmResponse) ProtoMessage()
func (*AuthConfirmResponse) Reset ¶
func (m *AuthConfirmResponse) Reset()
func (*AuthConfirmResponse) String ¶
func (m *AuthConfirmResponse) String() string
type AuthCreateRequest ¶
type AuthCreateRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
Character *Character `protobuf:"bytes,2,opt,name=Character" json:"Character,omitempty"`
Corporation *Corporation `protobuf:"bytes,3,opt,name=Corporation" json:"Corporation,omitempty"`
Alliance *Alliance `protobuf:"bytes,4,opt,name=Alliance" json:"Alliance,omitempty"`
AuthScope []string `protobuf:"bytes,5,rep,name=AuthScope" json:"AuthScope,omitempty"`
}
func (*AuthCreateRequest) Descriptor ¶
func (*AuthCreateRequest) Descriptor() ([]byte, []int)
func (*AuthCreateRequest) GetAlliance ¶
func (m *AuthCreateRequest) GetAlliance() *Alliance
func (*AuthCreateRequest) GetAuthScope ¶
func (m *AuthCreateRequest) GetAuthScope() []string
func (*AuthCreateRequest) GetCharacter ¶
func (m *AuthCreateRequest) GetCharacter() *Character
func (*AuthCreateRequest) GetCorporation ¶
func (m *AuthCreateRequest) GetCorporation() *Corporation
func (*AuthCreateRequest) GetToken ¶
func (m *AuthCreateRequest) GetToken() string
func (*AuthCreateRequest) ProtoMessage ¶
func (*AuthCreateRequest) ProtoMessage()
func (*AuthCreateRequest) Reset ¶
func (m *AuthCreateRequest) Reset()
func (*AuthCreateRequest) String ¶
func (m *AuthCreateRequest) String() string
type AuthCreateResponse ¶
type AuthCreateResponse struct {
AuthenticationCode string `protobuf:"bytes,1,opt,name=AuthenticationCode" json:"AuthenticationCode,omitempty"`
Success bool `protobuf:"varint,2,opt,name=Success" json:"Success,omitempty"`
}
func (*AuthCreateResponse) Descriptor ¶
func (*AuthCreateResponse) Descriptor() ([]byte, []int)
func (*AuthCreateResponse) GetAuthenticationCode ¶
func (m *AuthCreateResponse) GetAuthenticationCode() string
func (*AuthCreateResponse) GetSuccess ¶
func (m *AuthCreateResponse) GetSuccess() bool
func (*AuthCreateResponse) ProtoMessage ¶
func (*AuthCreateResponse) ProtoMessage()
func (*AuthCreateResponse) Reset ¶
func (m *AuthCreateResponse) Reset()
func (*AuthCreateResponse) String ¶
func (m *AuthCreateResponse) String() string
type Character ¶
type Character struct {
Id int64 `protobuf:"varint,1,opt,name=Id" json:"Id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
CorporationId int64 `protobuf:"varint,3,opt,name=CorporationId" json:"CorporationId,omitempty"`
}
func (*Character) Descriptor ¶
func (*Character) GetCorporationId ¶
func (*Character) ProtoMessage ¶
func (*Character) ProtoMessage()
type CharacterAdminRequest ¶
type CharacterAdminRequest struct {
Character *Character `protobuf:"bytes,1,opt,name=Character" json:"Character,omitempty"`
Operation EntityOperation `protobuf:"varint,2,opt,name=Operation,enum=abaeve.auth.EntityOperation" json:"Operation,omitempty"`
}
func (*CharacterAdminRequest) Descriptor ¶
func (*CharacterAdminRequest) Descriptor() ([]byte, []int)
func (*CharacterAdminRequest) GetCharacter ¶
func (m *CharacterAdminRequest) GetCharacter() *Character
func (*CharacterAdminRequest) GetOperation ¶
func (m *CharacterAdminRequest) GetOperation() EntityOperation
func (*CharacterAdminRequest) ProtoMessage ¶
func (*CharacterAdminRequest) ProtoMessage()
func (*CharacterAdminRequest) Reset ¶
func (m *CharacterAdminRequest) Reset()
func (*CharacterAdminRequest) String ¶
func (m *CharacterAdminRequest) String() string
type CharactersResponse ¶
type CharactersResponse struct {
List []*Character `protobuf:"bytes,1,rep,name=List" json:"List,omitempty"`
}
func (*CharactersResponse) Descriptor ¶
func (*CharactersResponse) Descriptor() ([]byte, []int)
func (*CharactersResponse) GetList ¶
func (m *CharactersResponse) GetList() []*Character
func (*CharactersResponse) ProtoMessage ¶
func (*CharactersResponse) ProtoMessage()
func (*CharactersResponse) Reset ¶
func (m *CharactersResponse) Reset()
func (*CharactersResponse) String ¶
func (m *CharactersResponse) String() string
type Corporation ¶
type Corporation struct {
Id int64 `protobuf:"varint,1,opt,name=Id" json:"Id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
Ticker string `protobuf:"bytes,3,opt,name=Ticker" json:"Ticker,omitempty"`
AllianceId int64 `protobuf:"varint,4,opt,name=AllianceId" json:"AllianceId,omitempty"`
}
func (*Corporation) Descriptor ¶
func (*Corporation) Descriptor() ([]byte, []int)
func (*Corporation) GetAllianceId ¶
func (m *Corporation) GetAllianceId() int64
func (*Corporation) GetId ¶
func (m *Corporation) GetId() int64
func (*Corporation) GetName ¶
func (m *Corporation) GetName() string
func (*Corporation) GetTicker ¶
func (m *Corporation) GetTicker() string
func (*Corporation) ProtoMessage ¶
func (*Corporation) ProtoMessage()
func (*Corporation) Reset ¶
func (m *Corporation) Reset()
func (*Corporation) String ¶
func (m *Corporation) String() string
type CorporationAdminRequest ¶
type CorporationAdminRequest struct {
Corporation *Corporation `protobuf:"bytes,1,opt,name=Corporation" json:"Corporation,omitempty"`
Operation EntityOperation `protobuf:"varint,2,opt,name=Operation,enum=abaeve.auth.EntityOperation" json:"Operation,omitempty"`
}
func (*CorporationAdminRequest) Descriptor ¶
func (*CorporationAdminRequest) Descriptor() ([]byte, []int)
func (*CorporationAdminRequest) GetCorporation ¶
func (m *CorporationAdminRequest) GetCorporation() *Corporation
func (*CorporationAdminRequest) GetOperation ¶
func (m *CorporationAdminRequest) GetOperation() EntityOperation
func (*CorporationAdminRequest) ProtoMessage ¶
func (*CorporationAdminRequest) ProtoMessage()
func (*CorporationAdminRequest) Reset ¶
func (m *CorporationAdminRequest) Reset()
func (*CorporationAdminRequest) String ¶
func (m *CorporationAdminRequest) String() string
type CorporationsResponse ¶
type CorporationsResponse struct {
List []*Corporation `protobuf:"bytes,1,rep,name=List" json:"List,omitempty"`
}
func (*CorporationsResponse) Descriptor ¶
func (*CorporationsResponse) Descriptor() ([]byte, []int)
func (*CorporationsResponse) GetList ¶
func (m *CorporationsResponse) GetList() []*Corporation
func (*CorporationsResponse) ProtoMessage ¶
func (*CorporationsResponse) ProtoMessage()
func (*CorporationsResponse) Reset ¶
func (m *CorporationsResponse) Reset()
func (*CorporationsResponse) String ¶
func (m *CorporationsResponse) String() string
type EntityAdmin ¶
type EntityAdmin struct {
EntityAdminHandler
}
func (*EntityAdmin) AllianceUpdate ¶
func (h *EntityAdmin) AllianceUpdate(ctx context.Context, in *AllianceAdminRequest, out *EntityAdminResponse) error
func (*EntityAdmin) CharacterUpdate ¶
func (h *EntityAdmin) CharacterUpdate(ctx context.Context, in *CharacterAdminRequest, out *EntityAdminResponse) error
func (*EntityAdmin) CorporationUpdate ¶
func (h *EntityAdmin) CorporationUpdate(ctx context.Context, in *CorporationAdminRequest, out *EntityAdminResponse) error
func (*EntityAdmin) RoleUpdate ¶
func (h *EntityAdmin) RoleUpdate(ctx context.Context, in *RoleAdminRequest, out *EntityAdminResponse) error
type EntityAdminClient ¶
type EntityAdminClient interface {
AllianceUpdate(ctx context.Context, in *AllianceAdminRequest, opts ...client.CallOption) (*EntityAdminResponse, error)
CorporationUpdate(ctx context.Context, in *CorporationAdminRequest, opts ...client.CallOption) (*EntityAdminResponse, error)
CharacterUpdate(ctx context.Context, in *CharacterAdminRequest, opts ...client.CallOption) (*EntityAdminResponse, error)
RoleUpdate(ctx context.Context, in *RoleAdminRequest, opts ...client.CallOption) (*EntityAdminResponse, error)
}
func NewEntityAdminClient ¶
func NewEntityAdminClient(serviceName string, c client.Client) EntityAdminClient
type EntityAdminHandler ¶
type EntityAdminHandler interface {
AllianceUpdate(context.Context, *AllianceAdminRequest, *EntityAdminResponse) error
CorporationUpdate(context.Context, *CorporationAdminRequest, *EntityAdminResponse) error
CharacterUpdate(context.Context, *CharacterAdminRequest, *EntityAdminResponse) error
RoleUpdate(context.Context, *RoleAdminRequest, *EntityAdminResponse) error
}
type EntityAdminResponse ¶
type EntityAdminResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
ErrorText string `protobuf:"bytes,2,opt,name=ErrorText" json:"ErrorText,omitempty"`
}
func (*EntityAdminResponse) Descriptor ¶
func (*EntityAdminResponse) Descriptor() ([]byte, []int)
func (*EntityAdminResponse) GetErrorText ¶
func (m *EntityAdminResponse) GetErrorText() string
func (*EntityAdminResponse) GetSuccess ¶
func (m *EntityAdminResponse) GetSuccess() bool
func (*EntityAdminResponse) ProtoMessage ¶
func (*EntityAdminResponse) ProtoMessage()
func (*EntityAdminResponse) Reset ¶
func (m *EntityAdminResponse) Reset()
func (*EntityAdminResponse) String ¶
func (m *EntityAdminResponse) String() string
type EntityOperation ¶
type EntityOperation int32
const ( EntityOperation_ADD_OR_UPDATE EntityOperation = 0 EntityOperation_REMOVE EntityOperation = 1 )
func (EntityOperation) EnumDescriptor ¶
func (EntityOperation) EnumDescriptor() ([]byte, []int)
func (EntityOperation) String ¶
func (x EntityOperation) String() string
type EntityQuery ¶
type EntityQuery struct {
EntityQueryHandler
}
func (*EntityQuery) GetAlliances ¶
func (h *EntityQuery) GetAlliances(ctx context.Context, in *EntityQueryRequest, out *AlliancesResponse) error
func (*EntityQuery) GetCharacters ¶
func (h *EntityQuery) GetCharacters(ctx context.Context, in *EntityQueryRequest, out *CharactersResponse) error
func (*EntityQuery) GetCorporations ¶
func (h *EntityQuery) GetCorporations(ctx context.Context, in *EntityQueryRequest, out *CorporationsResponse) error
func (*EntityQuery) GetRoles ¶
func (h *EntityQuery) GetRoles(ctx context.Context, in *EntityQueryRequest, out *RoleResponse) error
type EntityQueryClient ¶
type EntityQueryClient interface {
GetAlliances(ctx context.Context, in *EntityQueryRequest, opts ...client.CallOption) (*AlliancesResponse, error)
GetCorporations(ctx context.Context, in *EntityQueryRequest, opts ...client.CallOption) (*CorporationsResponse, error)
GetCharacters(ctx context.Context, in *EntityQueryRequest, opts ...client.CallOption) (*CharactersResponse, error)
GetRoles(ctx context.Context, in *EntityQueryRequest, opts ...client.CallOption) (*RoleResponse, error)
}
func NewEntityQueryClient ¶
func NewEntityQueryClient(serviceName string, c client.Client) EntityQueryClient
type EntityQueryHandler ¶
type EntityQueryHandler interface {
GetAlliances(context.Context, *EntityQueryRequest, *AlliancesResponse) error
GetCorporations(context.Context, *EntityQueryRequest, *CorporationsResponse) error
GetCharacters(context.Context, *EntityQueryRequest, *CharactersResponse) error
GetRoles(context.Context, *EntityQueryRequest, *RoleResponse) error
}
type EntityQueryRequest ¶
type EntityQueryRequest struct {
EntityType EntityType `protobuf:"varint,1,opt,name=EntityType,enum=abaeve.auth.EntityType" json:"EntityType,omitempty"`
}
func (*EntityQueryRequest) Descriptor ¶
func (*EntityQueryRequest) Descriptor() ([]byte, []int)
func (*EntityQueryRequest) GetEntityType ¶
func (m *EntityQueryRequest) GetEntityType() EntityType
func (*EntityQueryRequest) ProtoMessage ¶
func (*EntityQueryRequest) ProtoMessage()
func (*EntityQueryRequest) Reset ¶
func (m *EntityQueryRequest) Reset()
func (*EntityQueryRequest) String ¶
func (m *EntityQueryRequest) String() string
type EntityType ¶
type EntityType int32
const ( EntityType_ALLIANCE EntityType = 0 EntityType_CORPORATION EntityType = 1 EntityType_CHARACTER EntityType = 2 EntityType_ROLE EntityType = 3 )
func (EntityType) EnumDescriptor ¶
func (EntityType) EnumDescriptor() ([]byte, []int)
func (EntityType) String ¶
func (x EntityType) String() string
type GetRolesRequest ¶
type GetRolesRequest struct {
UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"`
}
func (*GetRolesRequest) Descriptor ¶
func (*GetRolesRequest) Descriptor() ([]byte, []int)
func (*GetRolesRequest) GetUserId ¶
func (m *GetRolesRequest) GetUserId() string
func (*GetRolesRequest) ProtoMessage ¶
func (*GetRolesRequest) ProtoMessage()
func (*GetRolesRequest) Reset ¶
func (m *GetRolesRequest) Reset()
func (*GetRolesRequest) String ¶
func (m *GetRolesRequest) String() string
type Role ¶
type Role struct {
RoleName string `protobuf:"bytes,1,opt,name=RoleName" json:"RoleName,omitempty"`
ChatServiceGroup string `protobuf:"bytes,2,opt,name=ChatServiceGroup" json:"ChatServiceGroup,omitempty"`
}
func (*Role) Descriptor ¶
func (*Role) GetChatServiceGroup ¶
func (*Role) GetRoleName ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
type RoleAdminRequest ¶
type RoleAdminRequest struct {
Role *Role `protobuf:"bytes,1,opt,name=Role" json:"Role,omitempty"`
Operation EntityOperation `protobuf:"varint,2,opt,name=Operation,enum=abaeve.auth.EntityOperation" json:"Operation,omitempty"`
}
func (*RoleAdminRequest) Descriptor ¶
func (*RoleAdminRequest) Descriptor() ([]byte, []int)
func (*RoleAdminRequest) GetOperation ¶
func (m *RoleAdminRequest) GetOperation() EntityOperation
func (*RoleAdminRequest) GetRole ¶
func (m *RoleAdminRequest) GetRole() *Role
func (*RoleAdminRequest) ProtoMessage ¶
func (*RoleAdminRequest) ProtoMessage()
func (*RoleAdminRequest) Reset ¶
func (m *RoleAdminRequest) Reset()
func (*RoleAdminRequest) String ¶
func (m *RoleAdminRequest) String() string
type RoleResponse ¶
type RoleResponse struct {
List []*Role `protobuf:"bytes,1,rep,name=List" json:"List,omitempty"`
}
func (*RoleResponse) Descriptor ¶
func (*RoleResponse) Descriptor() ([]byte, []int)
func (*RoleResponse) GetList ¶
func (m *RoleResponse) GetList() []*Role
func (*RoleResponse) ProtoMessage ¶
func (*RoleResponse) ProtoMessage()
func (*RoleResponse) Reset ¶
func (m *RoleResponse) Reset()
func (*RoleResponse) String ¶
func (m *RoleResponse) String() string
type UserAuthentication ¶
type UserAuthentication struct {
UserAuthenticationHandler
}
func (*UserAuthentication) Confirm ¶
func (h *UserAuthentication) Confirm(ctx context.Context, in *AuthConfirmRequest, out *AuthConfirmResponse) error
func (*UserAuthentication) Create ¶
func (h *UserAuthentication) Create(ctx context.Context, in *AuthCreateRequest, out *AuthCreateResponse) error
func (*UserAuthentication) GetRoles ¶
func (h *UserAuthentication) GetRoles(ctx context.Context, in *GetRolesRequest, out *AuthConfirmResponse) error
type UserAuthenticationAdmin ¶
type UserAuthenticationAdmin struct {
UserAuthenticationAdminHandler
}
func (*UserAuthenticationAdmin) AllianceCharacterLeadershipRoleAdd ¶
func (h *UserAuthenticationAdmin) AllianceCharacterLeadershipRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) AllianceCharacterLeadershipRoleRemove ¶
func (h *UserAuthenticationAdmin) AllianceCharacterLeadershipRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) AllianceRoleAdd ¶
func (h *UserAuthenticationAdmin) AllianceRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) AllianceRoleRemove ¶
func (h *UserAuthenticationAdmin) AllianceRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CharacterRoleAdd ¶
func (h *UserAuthenticationAdmin) CharacterRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CharacterRoleRemove ¶
func (h *UserAuthenticationAdmin) CharacterRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CorporationAllianceRoleAdd ¶
func (h *UserAuthenticationAdmin) CorporationAllianceRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CorporationAllianceRoleRemove ¶
func (h *UserAuthenticationAdmin) CorporationAllianceRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CorporationCharacterLeadershipRoleAdd ¶
func (h *UserAuthenticationAdmin) CorporationCharacterLeadershipRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CorporationCharacterLeadershipRoleRemove ¶
func (h *UserAuthenticationAdmin) CorporationCharacterLeadershipRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CorporationRoleAdd ¶
func (h *UserAuthenticationAdmin) CorporationRoleAdd(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
func (*UserAuthenticationAdmin) CorporationRoleRemove ¶
func (h *UserAuthenticationAdmin) CorporationRoleRemove(ctx context.Context, in *AuthAdminRequest, out *AuthAdminResponse) error
type UserAuthenticationAdminClient ¶
type UserAuthenticationAdminClient interface {
CharacterRoleAdd(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
CharacterRoleRemove(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
CorporationAllianceRoleAdd(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
CorporationAllianceRoleRemove(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
CorporationRoleAdd(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
CorporationRoleRemove(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
AllianceRoleAdd(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
AllianceRoleRemove(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
AllianceCharacterLeadershipRoleAdd(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
AllianceCharacterLeadershipRoleRemove(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
CorporationCharacterLeadershipRoleAdd(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
CorporationCharacterLeadershipRoleRemove(ctx context.Context, in *AuthAdminRequest, opts ...client.CallOption) (*AuthAdminResponse, error)
}
func NewUserAuthenticationAdminClient ¶
func NewUserAuthenticationAdminClient(serviceName string, c client.Client) UserAuthenticationAdminClient
type UserAuthenticationAdminHandler ¶
type UserAuthenticationAdminHandler interface {
CharacterRoleAdd(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
CharacterRoleRemove(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
CorporationAllianceRoleAdd(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
CorporationAllianceRoleRemove(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
CorporationRoleAdd(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
CorporationRoleRemove(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
AllianceRoleAdd(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
AllianceRoleRemove(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
AllianceCharacterLeadershipRoleAdd(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
AllianceCharacterLeadershipRoleRemove(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
CorporationCharacterLeadershipRoleAdd(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
CorporationCharacterLeadershipRoleRemove(context.Context, *AuthAdminRequest, *AuthAdminResponse) error
}
type UserAuthenticationClient ¶
type UserAuthenticationClient interface {
// Called by the auth-web to state someone has started the auth process
Create(ctx context.Context, in *AuthCreateRequest, opts ...client.CallOption) (*AuthCreateResponse, error)
// Called by the auth-bot or another system to state that they've linked a character to their account
Confirm(ctx context.Context, in *AuthConfirmRequest, opts ...client.CallOption) (*AuthConfirmResponse, error)
// Called to get all roles for an already authed user
GetRoles(ctx context.Context, in *GetRolesRequest, opts ...client.CallOption) (*AuthConfirmResponse, error)
}
func NewUserAuthenticationClient ¶
func NewUserAuthenticationClient(serviceName string, c client.Client) UserAuthenticationClient
type UserAuthenticationHandler ¶
type UserAuthenticationHandler interface {
// Called by the auth-web to state someone has started the auth process
Create(context.Context, *AuthCreateRequest, *AuthCreateResponse) error
// Called by the auth-bot or another system to state that they've linked a character to their account
Confirm(context.Context, *AuthConfirmRequest, *AuthConfirmResponse) error
// Called to get all roles for an already authed user
GetRoles(context.Context, *GetRolesRequest, *AuthConfirmResponse) error
}
Click to show internal directories.
Click to hide internal directories.