proto

package
v0.0.0-...-ba645fd Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 5 Imported by: 0

README

protoc pkg/identity/proto/identity.proto --go_out=plugins=grpc:.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterIdentityServiceServer

func RegisterIdentityServiceServer(s *grpc.Server, srv IdentityServiceServer)

Types

type Account

type Account struct {
	ID                    string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	App                   string   `protobuf:"bytes,2,opt,name=App,proto3" json:"App,omitempty"`
	Username              string   `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	PasswordHash          string   `protobuf:"bytes,4,opt,name=PasswordHash,proto3" json:"PasswordHash,omitempty"`
	FirstName             string   `protobuf:"bytes,5,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
	LastName              string   `protobuf:"bytes,6,opt,name=LastName,proto3" json:"LastName,omitempty"`
	ExternalID            string   `protobuf:"bytes,7,opt,name=ExternalID,proto3" json:"ExternalID,omitempty"`
	IsLockedOut           bool     `protobuf:"varint,8,opt,name=IsLockedOut,proto3" json:"IsLockedOut,omitempty"`
	FailedPasswordAttempt int32    `protobuf:"varint,9,opt,name=FailedPasswordAttempt,proto3" json:"FailedPasswordAttempt,omitempty"`
	Roles                 []string `protobuf:"bytes,10,rep,name=Roles,proto3" json:"Roles,omitempty"`
	LastLoginAt           int32    `protobuf:"varint,11,opt,name=LastLoginAt,proto3" json:"LastLoginAt,omitempty"`
	CreatedAt             int32    `protobuf:"varint,12,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	UpdatedAt             int32    `protobuf:"varint,13,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
	XXX_unrecognized      []byte   `json:"-"`
	XXX_sizecache         int32    `json:"-"`
}

func (*Account) Descriptor

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

func (*Account) GetApp

func (m *Account) GetApp() string

func (*Account) GetCreatedAt

func (m *Account) GetCreatedAt() int32

func (*Account) GetExternalID

func (m *Account) GetExternalID() string

func (*Account) GetFailedPasswordAttempt

func (m *Account) GetFailedPasswordAttempt() int32

func (*Account) GetFirstName

func (m *Account) GetFirstName() string

func (*Account) GetID

func (m *Account) GetID() string

func (*Account) GetIsLockedOut

func (m *Account) GetIsLockedOut() bool

func (*Account) GetLastLoginAt

func (m *Account) GetLastLoginAt() int32

func (*Account) GetLastName

func (m *Account) GetLastName() string

func (*Account) GetPasswordHash

func (m *Account) GetPasswordHash() string

func (*Account) GetRoles

func (m *Account) GetRoles() []string

func (*Account) GetUpdatedAt

func (m *Account) GetUpdatedAt() int32

func (*Account) GetUsername

func (m *Account) GetUsername() 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 (dst *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 AccountByTokenRequest

type AccountByTokenRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountByTokenRequest) Descriptor

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

func (*AccountByTokenRequest) GetToken

func (m *AccountByTokenRequest) GetToken() string

func (*AccountByTokenRequest) ProtoMessage

func (*AccountByTokenRequest) ProtoMessage()

func (*AccountByTokenRequest) Reset

func (m *AccountByTokenRequest) Reset()

func (*AccountByTokenRequest) String

func (m *AccountByTokenRequest) String() string

func (*AccountByTokenRequest) XXX_DiscardUnknown

func (m *AccountByTokenRequest) XXX_DiscardUnknown()

func (*AccountByTokenRequest) XXX_Marshal

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

func (*AccountByTokenRequest) XXX_Merge

func (dst *AccountByTokenRequest) XXX_Merge(src proto.Message)

func (*AccountByTokenRequest) XXX_Size

func (m *AccountByTokenRequest) XXX_Size() int

func (*AccountByTokenRequest) XXX_Unmarshal

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

type EmptyReply

type EmptyReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyReply) Descriptor

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

func (*EmptyReply) ProtoMessage

func (*EmptyReply) ProtoMessage()

func (*EmptyReply) Reset

func (m *EmptyReply) Reset()

func (*EmptyReply) String

func (m *EmptyReply) String() string

func (*EmptyReply) XXX_DiscardUnknown

func (m *EmptyReply) XXX_DiscardUnknown()

func (*EmptyReply) XXX_Marshal

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

func (*EmptyReply) XXX_Merge

func (dst *EmptyReply) XXX_Merge(src proto.Message)

func (*EmptyReply) XXX_Size

func (m *EmptyReply) XXX_Size() int

func (*EmptyReply) XXX_Unmarshal

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

type EmptyRequest

type EmptyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyRequest) Descriptor

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

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) Reset

func (m *EmptyRequest) Reset()

func (*EmptyRequest) String

func (m *EmptyRequest) String() string

func (*EmptyRequest) XXX_DiscardUnknown

func (m *EmptyRequest) XXX_DiscardUnknown()

func (*EmptyRequest) XXX_Marshal

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

func (*EmptyRequest) XXX_Merge

func (dst *EmptyRequest) XXX_Merge(src proto.Message)

func (*EmptyRequest) XXX_Size

func (m *EmptyRequest) XXX_Size() int

func (*EmptyRequest) XXX_Unmarshal

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

type IdentityServiceClient

type IdentityServiceClient interface {
	AccountByToken(ctx context.Context, in *AccountByTokenRequest, opts ...grpc.CallOption) (*Account, error)
}

IdentityServiceClient is the client API for IdentityService service.

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

func NewIdentityServiceClient

func NewIdentityServiceClient(cc *grpc.ClientConn) IdentityServiceClient

type IdentityServiceServer

type IdentityServiceServer interface {
	AccountByToken(context.Context, *AccountByTokenRequest) (*Account, error)
}

IdentityServiceServer is the server API for IdentityService service.

Jump to

Keyboard shortcuts

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