protobuf

package
v0.0.0-...-c829b85 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PublicKey_EllipticCurve_name = map[int32]string{
	0: "P224",
	1: "P256",
	2: "P384",
	3: "P521",
}
View Source
var PublicKey_EllipticCurve_value = map[string]int32{
	"P224": 0,
	"P256": 1,
	"P384": 2,
	"P521": 3,
}

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)

func RegisterCharacterServiceServer

func RegisterCharacterServiceServer(s *grpc.Server, srv CharacterServiceServer)

Types

type Account

type Account struct {
	Id                   int64        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Keys                 []*PublicKey `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Account) Descriptor

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

func (*Account) GetId

func (m *Account) GetId() int64

func (*Account) GetKeys

func (m *Account) GetKeys() []*PublicKey

func (*Account) GetName

func (m *Account) GetName() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Account) XXX_Merge

func (m *Account) XXX_Merge(src proto.Message)

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

func (m *Account) XXX_Unmarshal(b []byte) error

type AccountServiceClient

type AccountServiceClient interface {
	CreateNewAccount(ctx context.Context, in *NewAccountRequest, opts ...grpc.CallOption) (*NewAccountResponse, error)
}

AccountServiceClient is the client API for AccountService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

type AccountServiceServer

type AccountServiceServer interface {
	CreateNewAccount(context.Context, *NewAccountRequest) (*NewAccountResponse, error)
}

AccountServiceServer is the server API for AccountService service.

type Character

type Character struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Character) Descriptor

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

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

func (*Character) XXX_DiscardUnknown

func (m *Character) XXX_DiscardUnknown()

func (*Character) XXX_Marshal

func (m *Character) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Character) XXX_Merge

func (m *Character) XXX_Merge(src proto.Message)

func (*Character) XXX_Size

func (m *Character) XXX_Size() int

func (*Character) XXX_Unmarshal

func (m *Character) XXX_Unmarshal(b []byte) error

type CharacterServiceClient

type CharacterServiceClient interface {
	CreateNewCharacter(ctx context.Context, in *CreateCharacterRequest, opts ...grpc.CallOption) (*CreateCharacterResponse, error)
	GetCharacters(ctx context.Context, in *GetCharactersRequest, opts ...grpc.CallOption) (*GetCharactersResponse, error)
	LoadCharacter(ctx context.Context, in *LoadCharacterRequest, opts ...grpc.CallOption) (*LoadCharacterResponse, error)
}

CharacterServiceClient is the client API for CharacterService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCharacterServiceClient

func NewCharacterServiceClient(cc *grpc.ClientConn) CharacterServiceClient

type CharacterServiceServer

type CharacterServiceServer interface {
	CreateNewCharacter(context.Context, *CreateCharacterRequest) (*CreateCharacterResponse, error)
	GetCharacters(context.Context, *GetCharactersRequest) (*GetCharactersResponse, error)
	LoadCharacter(context.Context, *LoadCharacterRequest) (*LoadCharacterResponse, error)
}

CharacterServiceServer is the server API for CharacterService service.

type CreateCharacterRequest

type CreateCharacterRequest struct {
	AccountId            int64      `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	CharacterName        string     `protobuf:"bytes,2,opt,name=character_name,json=characterName,proto3" json:"character_name,omitempty"`
	Signature            *Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*CreateCharacterRequest) Descriptor

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

func (*CreateCharacterRequest) GetAccountId

func (m *CreateCharacterRequest) GetAccountId() int64

func (*CreateCharacterRequest) GetCharacterName

func (m *CreateCharacterRequest) GetCharacterName() string

func (*CreateCharacterRequest) GetSignature

func (m *CreateCharacterRequest) GetSignature() *Signature

func (*CreateCharacterRequest) ProtoMessage

func (*CreateCharacterRequest) ProtoMessage()

func (*CreateCharacterRequest) Reset

func (m *CreateCharacterRequest) Reset()

func (*CreateCharacterRequest) String

func (m *CreateCharacterRequest) String() string

func (*CreateCharacterRequest) XXX_DiscardUnknown

func (m *CreateCharacterRequest) XXX_DiscardUnknown()

func (*CreateCharacterRequest) XXX_Marshal

func (m *CreateCharacterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCharacterRequest) XXX_Merge

func (m *CreateCharacterRequest) XXX_Merge(src proto.Message)

func (*CreateCharacterRequest) XXX_Size

func (m *CreateCharacterRequest) XXX_Size() int

func (*CreateCharacterRequest) XXX_Unmarshal

func (m *CreateCharacterRequest) XXX_Unmarshal(b []byte) error

type CreateCharacterResponse

type CreateCharacterResponse struct {
	CharacterId          int64    `protobuf:"varint,1,opt,name=character_id,json=characterId,proto3" json:"character_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateCharacterResponse) Descriptor

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

func (*CreateCharacterResponse) GetCharacterId

func (m *CreateCharacterResponse) GetCharacterId() int64

func (*CreateCharacterResponse) ProtoMessage

func (*CreateCharacterResponse) ProtoMessage()

func (*CreateCharacterResponse) Reset

func (m *CreateCharacterResponse) Reset()

func (*CreateCharacterResponse) String

func (m *CreateCharacterResponse) String() string

func (*CreateCharacterResponse) XXX_DiscardUnknown

func (m *CreateCharacterResponse) XXX_DiscardUnknown()

func (*CreateCharacterResponse) XXX_Marshal

func (m *CreateCharacterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateCharacterResponse) XXX_Merge

func (m *CreateCharacterResponse) XXX_Merge(src proto.Message)

func (*CreateCharacterResponse) XXX_Size

func (m *CreateCharacterResponse) XXX_Size() int

func (*CreateCharacterResponse) XXX_Unmarshal

func (m *CreateCharacterResponse) XXX_Unmarshal(b []byte) error

type GetCharactersRequest

type GetCharactersRequest struct {
	AccountId            int64      `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Signature            *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GetCharactersRequest) Descriptor

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

func (*GetCharactersRequest) GetAccountId

func (m *GetCharactersRequest) GetAccountId() int64

func (*GetCharactersRequest) GetSignature

func (m *GetCharactersRequest) GetSignature() *Signature

func (*GetCharactersRequest) ProtoMessage

func (*GetCharactersRequest) ProtoMessage()

func (*GetCharactersRequest) Reset

func (m *GetCharactersRequest) Reset()

func (*GetCharactersRequest) String

func (m *GetCharactersRequest) String() string

func (*GetCharactersRequest) XXX_DiscardUnknown

func (m *GetCharactersRequest) XXX_DiscardUnknown()

func (*GetCharactersRequest) XXX_Marshal

func (m *GetCharactersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCharactersRequest) XXX_Merge

func (m *GetCharactersRequest) XXX_Merge(src proto.Message)

func (*GetCharactersRequest) XXX_Size

func (m *GetCharactersRequest) XXX_Size() int

func (*GetCharactersRequest) XXX_Unmarshal

func (m *GetCharactersRequest) XXX_Unmarshal(b []byte) error

type GetCharactersResponse

type GetCharactersResponse struct {
	Characters           []*Character `protobuf:"bytes,1,rep,name=characters,proto3" json:"characters,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*GetCharactersResponse) Descriptor

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

func (*GetCharactersResponse) GetCharacters

func (m *GetCharactersResponse) GetCharacters() []*Character

func (*GetCharactersResponse) ProtoMessage

func (*GetCharactersResponse) ProtoMessage()

func (*GetCharactersResponse) Reset

func (m *GetCharactersResponse) Reset()

func (*GetCharactersResponse) String

func (m *GetCharactersResponse) String() string

func (*GetCharactersResponse) XXX_DiscardUnknown

func (m *GetCharactersResponse) XXX_DiscardUnknown()

func (*GetCharactersResponse) XXX_Marshal

func (m *GetCharactersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCharactersResponse) XXX_Merge

func (m *GetCharactersResponse) XXX_Merge(src proto.Message)

func (*GetCharactersResponse) XXX_Size

func (m *GetCharactersResponse) XXX_Size() int

func (*GetCharactersResponse) XXX_Unmarshal

func (m *GetCharactersResponse) XXX_Unmarshal(b []byte) error

type LoadCharacterRequest

type LoadCharacterRequest struct {
	AccountId            int64    `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	CharacterId          int64    `protobuf:"varint,2,opt,name=character_id,json=characterId,proto3" json:"character_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoadCharacterRequest) Descriptor

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

func (*LoadCharacterRequest) GetAccountId

func (m *LoadCharacterRequest) GetAccountId() int64

func (*LoadCharacterRequest) GetCharacterId

func (m *LoadCharacterRequest) GetCharacterId() int64

func (*LoadCharacterRequest) ProtoMessage

func (*LoadCharacterRequest) ProtoMessage()

func (*LoadCharacterRequest) Reset

func (m *LoadCharacterRequest) Reset()

func (*LoadCharacterRequest) String

func (m *LoadCharacterRequest) String() string

func (*LoadCharacterRequest) XXX_DiscardUnknown

func (m *LoadCharacterRequest) XXX_DiscardUnknown()

func (*LoadCharacterRequest) XXX_Marshal

func (m *LoadCharacterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadCharacterRequest) XXX_Merge

func (m *LoadCharacterRequest) XXX_Merge(src proto.Message)

func (*LoadCharacterRequest) XXX_Size

func (m *LoadCharacterRequest) XXX_Size() int

func (*LoadCharacterRequest) XXX_Unmarshal

func (m *LoadCharacterRequest) XXX_Unmarshal(b []byte) error

type LoadCharacterResponse

type LoadCharacterResponse struct {
	Character            *Character `protobuf:"bytes,1,opt,name=character,proto3" json:"character,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*LoadCharacterResponse) Descriptor

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

func (*LoadCharacterResponse) GetCharacter

func (m *LoadCharacterResponse) GetCharacter() *Character

func (*LoadCharacterResponse) ProtoMessage

func (*LoadCharacterResponse) ProtoMessage()

func (*LoadCharacterResponse) Reset

func (m *LoadCharacterResponse) Reset()

func (*LoadCharacterResponse) String

func (m *LoadCharacterResponse) String() string

func (*LoadCharacterResponse) XXX_DiscardUnknown

func (m *LoadCharacterResponse) XXX_DiscardUnknown()

func (*LoadCharacterResponse) XXX_Marshal

func (m *LoadCharacterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadCharacterResponse) XXX_Merge

func (m *LoadCharacterResponse) XXX_Merge(src proto.Message)

func (*LoadCharacterResponse) XXX_Size

func (m *LoadCharacterResponse) XXX_Size() int

func (*LoadCharacterResponse) XXX_Unmarshal

func (m *LoadCharacterResponse) XXX_Unmarshal(b []byte) error

type NewAccountRequest

type NewAccountRequest struct {
	Username             string     `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Key                  *PublicKey `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Sig                  *Signature `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*NewAccountRequest) Descriptor

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

func (*NewAccountRequest) GetKey

func (m *NewAccountRequest) GetKey() *PublicKey

func (*NewAccountRequest) GetSig

func (m *NewAccountRequest) GetSig() *Signature

func (*NewAccountRequest) GetUsername

func (m *NewAccountRequest) GetUsername() string

func (*NewAccountRequest) ProtoMessage

func (*NewAccountRequest) ProtoMessage()

func (*NewAccountRequest) Reset

func (m *NewAccountRequest) Reset()

func (*NewAccountRequest) String

func (m *NewAccountRequest) String() string

func (*NewAccountRequest) XXX_DiscardUnknown

func (m *NewAccountRequest) XXX_DiscardUnknown()

func (*NewAccountRequest) XXX_Marshal

func (m *NewAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewAccountRequest) XXX_Merge

func (m *NewAccountRequest) XXX_Merge(src proto.Message)

func (*NewAccountRequest) XXX_Size

func (m *NewAccountRequest) XXX_Size() int

func (*NewAccountRequest) XXX_Unmarshal

func (m *NewAccountRequest) XXX_Unmarshal(b []byte) error

type NewAccountResponse

type NewAccountResponse struct {
	Userid               int64    `protobuf:"varint,1,opt,name=userid,proto3" json:"userid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAccountResponse) Descriptor

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

func (*NewAccountResponse) GetUserid

func (m *NewAccountResponse) GetUserid() int64

func (*NewAccountResponse) ProtoMessage

func (*NewAccountResponse) ProtoMessage()

func (*NewAccountResponse) Reset

func (m *NewAccountResponse) Reset()

func (*NewAccountResponse) String

func (m *NewAccountResponse) String() string

func (*NewAccountResponse) XXX_DiscardUnknown

func (m *NewAccountResponse) XXX_DiscardUnknown()

func (*NewAccountResponse) XXX_Marshal

func (m *NewAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewAccountResponse) XXX_Merge

func (m *NewAccountResponse) XXX_Merge(src proto.Message)

func (*NewAccountResponse) XXX_Size

func (m *NewAccountResponse) XXX_Size() int

func (*NewAccountResponse) XXX_Unmarshal

func (m *NewAccountResponse) XXX_Unmarshal(b []byte) error

type PublicKey

type PublicKey struct {
	Curve                PublicKey_EllipticCurve `protobuf:"varint,1,opt,name=curve,proto3,enum=protobuf.PublicKey_EllipticCurve" json:"curve,omitempty"`
	X                    string                  `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"`
	Y                    string                  `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"`
	Name                 string                  `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*PublicKey) Descriptor

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

func (*PublicKey) GetCurve

func (m *PublicKey) GetCurve() PublicKey_EllipticCurve

func (*PublicKey) GetName

func (m *PublicKey) GetName() string

func (*PublicKey) GetX

func (m *PublicKey) GetX() string

func (*PublicKey) GetY

func (m *PublicKey) GetY() string

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

func (*PublicKey) XXX_DiscardUnknown

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal

func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublicKey) XXX_Merge

func (m *PublicKey) XXX_Merge(src proto.Message)

func (*PublicKey) XXX_Size

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal

func (m *PublicKey) XXX_Unmarshal(b []byte) error

type PublicKey_EllipticCurve

type PublicKey_EllipticCurve int32
const (
	PublicKey_P224 PublicKey_EllipticCurve = 0
	PublicKey_P256 PublicKey_EllipticCurve = 1
	PublicKey_P384 PublicKey_EllipticCurve = 2
	PublicKey_P521 PublicKey_EllipticCurve = 3
)

func (PublicKey_EllipticCurve) EnumDescriptor

func (PublicKey_EllipticCurve) EnumDescriptor() ([]byte, []int)

func (PublicKey_EllipticCurve) String

func (x PublicKey_EllipticCurve) String() string

type Signature

type Signature struct {
	Hash                 string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	R                    string   `protobuf:"bytes,2,opt,name=r,proto3" json:"r,omitempty"`
	S                    string   `protobuf:"bytes,3,opt,name=s,proto3" json:"s,omitempty"`
	Keyname              string   `protobuf:"bytes,4,opt,name=keyname,proto3" json:"keyname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Signature) Descriptor

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

func (*Signature) GetHash

func (m *Signature) GetHash() string

func (*Signature) GetKeyname

func (m *Signature) GetKeyname() string

func (*Signature) GetR

func (m *Signature) GetR() string

func (*Signature) GetS

func (m *Signature) GetS() string

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Signature) XXX_Merge

func (m *Signature) XXX_Merge(src proto.Message)

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

func (m *Signature) XXX_Unmarshal(b []byte) error

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServiceServer) CreateNewAccount

type UnimplementedCharacterServiceServer

type UnimplementedCharacterServiceServer struct {
}

UnimplementedCharacterServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCharacterServiceServer) CreateNewCharacter

func (*UnimplementedCharacterServiceServer) GetCharacters

func (*UnimplementedCharacterServiceServer) LoadCharacter

Jump to

Keyboard shortcuts

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