abaeve_auth

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 8

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:

SyncRequest
Role
SyncToRoleResponse
AuthCreateRequest
AuthCreateResponse
AuthConfirmRequest
AuthConfirmResponse
CharactersResponse
Character
CorporationsResponse
Corporation
AlliancesResponse
Alliance
EntityAdminResponse
AllianceAdminRequest
CorporationAdminRequest
CharacterAdminRequest
EntityQueryRequest

Package abaeve_auth is a generated protocol buffer package.

It is generated from these files:

auth-srv.proto

It has these top-level messages:

SyncRequest
Role
SyncToRoleResponse
AuthCreateRequest
AuthCreateResponse
AuthConfirmRequest
AuthConfirmResponse
CharactersResponse
Character
CorporationsResponse
Corporation
AlliancesResponse
Alliance
EntityAdminResponse
AllianceAdminRequest
CorporationAdminRequest
CharacterAdminRequest
EntityQueryRequest

Index

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 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) Descriptor() ([]byte, []int)

func (*Alliance) GetId

func (m *Alliance) GetId() int64

func (*Alliance) GetName

func (m *Alliance) GetName() string

func (*Alliance) GetTicker

func (m *Alliance) GetTicker() string

func (*Alliance) ProtoMessage

func (*Alliance) ProtoMessage()

func (*Alliance) Reset

func (m *Alliance) Reset()

func (*Alliance) String

func (m *Alliance) String() string

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 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"`
}

func (*AuthConfirmResponse) Descriptor

func (*AuthConfirmResponse) Descriptor() ([]byte, []int)

func (*AuthConfirmResponse) GetCharacterName

func (m *AuthConfirmResponse) GetCharacterName() 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) Descriptor() ([]byte, []int)

func (*Character) GetCorporationId

func (m *Character) GetCorporationId() int64

func (*Character) GetId

func (m *Character) GetId() int64

func (*Character) GetName

func (m *Character) GetName() string

func (*Character) ProtoMessage

func (*Character) ProtoMessage()

func (*Character) Reset

func (m *Character) Reset()

func (*Character) String

func (m *Character) String() string

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

type EntityAdminResponse

type EntityAdminResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*EntityAdminResponse) Descriptor

func (*EntityAdminResponse) Descriptor() ([]byte, []int)

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 EntityAdminService added in v1.1.5

type EntityAdminService 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)
}

func EntityAdminServiceClient added in v1.1.5

func EntityAdminServiceClient(serviceName string, c client.Client) EntityAdminService

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

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 EntityQueryService added in v1.1.5

type EntityQueryService 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)
}

func EntityQueryServiceClient added in v1.1.5

func EntityQueryServiceClient(serviceName string, c client.Client) EntityQueryService

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 Role

type Role struct {
	Name        string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=Description" json:"Description,omitempty"`
}

func (*Role) Descriptor

func (*Role) Descriptor() ([]byte, []int)

func (*Role) GetDescription added in v1.1.5

func (m *Role) GetDescription() string

func (*Role) GetName added in v1.1.5

func (m *Role) GetName() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) Reset

func (m *Role) Reset()

func (*Role) String

func (m *Role) String() string

type SyncRequest added in v1.1.5

type SyncRequest struct {
	ChannelId   string `protobuf:"bytes,1,opt,name=ChannelId" json:"ChannelId,omitempty"`
	UserId      string `protobuf:"bytes,2,opt,name=UserId" json:"UserId,omitempty"`
	SendMessage bool   `protobuf:"varint,3,opt,name=SendMessage" json:"SendMessage,omitempty"`
}

func (*SyncRequest) Descriptor added in v1.1.5

func (*SyncRequest) Descriptor() ([]byte, []int)

func (*SyncRequest) GetChannelId added in v1.1.5

func (m *SyncRequest) GetChannelId() string

func (*SyncRequest) GetSendMessage added in v1.1.5

func (m *SyncRequest) GetSendMessage() bool

func (*SyncRequest) GetUserId added in v1.1.5

func (m *SyncRequest) GetUserId() string

func (*SyncRequest) ProtoMessage added in v1.1.5

func (*SyncRequest) ProtoMessage()

func (*SyncRequest) Reset added in v1.1.5

func (m *SyncRequest) Reset()

func (*SyncRequest) String added in v1.1.5

func (m *SyncRequest) String() string

type SyncToRoleResponse added in v1.1.5

type SyncToRoleResponse struct {
	Roles []*Role `protobuf:"bytes,1,rep,name=Roles" json:"Roles,omitempty"`
}

func (*SyncToRoleResponse) Descriptor added in v1.1.5

func (*SyncToRoleResponse) Descriptor() ([]byte, []int)

func (*SyncToRoleResponse) GetRoles added in v1.1.5

func (m *SyncToRoleResponse) GetRoles() []*Role

func (*SyncToRoleResponse) ProtoMessage added in v1.1.5

func (*SyncToRoleResponse) ProtoMessage()

func (*SyncToRoleResponse) Reset added in v1.1.5

func (m *SyncToRoleResponse) Reset()

func (*SyncToRoleResponse) String added in v1.1.5

func (m *SyncToRoleResponse) String() string

type UserAuthentication

type UserAuthentication struct {
	UserAuthenticationHandler
}

func (*UserAuthentication) Confirm

func (*UserAuthentication) Create

func (*UserAuthentication) SyncToRoleService added in v1.1.5

func (h *UserAuthentication) SyncToRoleService(ctx context.Context, in *SyncRequest, out *SyncToRoleResponse) error

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
	SyncToRoleService(context.Context, *SyncRequest, *SyncToRoleResponse) error
}

type UserAuthenticationService added in v1.1.5

type UserAuthenticationService 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)
	SyncToRoleService(ctx context.Context, in *SyncRequest, opts ...client.CallOption) (*SyncToRoleResponse, error)
}

func UserAuthenticationServiceClient added in v1.1.5

func UserAuthenticationServiceClient(serviceName string, c client.Client) UserAuthenticationService

Directories

Path Synopsis
mocks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL