shinninjou

package
v0.0.0-...-5bbb7b8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthShinninjou = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowShinninjou   = fmt.Errorf("proto: integer overflow")
)
View Source
var CredentialType_name = map[int32]string{
	0: "PASSWORD",
}
View Source
var CredentialType_value = map[string]int32{
	"PASSWORD": 0,
}

Functions

func RegisterShinninjouServer

func RegisterShinninjouServer(s *grpc.Server, srv ShinninjouServer)

Types

type Client

type Client struct {
	grpc.Client
	ShinninjouClient
}

Client is the client to the Shinninjou gRPC service.

func NewClient

func NewClient(config *grpc.ClientConfig) *Client

NewClient returns a client to the Shinninjou gRPC service.

type Credential

type Credential struct {
	Id             *common.UUID   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"`
	UserID         *common.UUID   `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"`
	CredentialType CredentialType `protobuf:"varint,3,opt,name=credentialType,proto3,enum=shinninjou.CredentialType" json:"credentialType,omitempty"`
	Credential     []byte         `protobuf:"bytes,4,opt,name=credential,proto3" json:"credential,omitempty"`
}

func (*Credential) Descriptor

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

func (*Credential) GetCredential

func (m *Credential) GetCredential() []byte

func (*Credential) GetCredentialType

func (m *Credential) GetCredentialType() CredentialType

func (*Credential) GetId

func (m *Credential) GetId() *common.UUID

func (*Credential) GetUserID

func (m *Credential) GetUserID() *common.UUID

func (*Credential) Marshal

func (m *Credential) Marshal() (dAtA []byte, err error)

func (*Credential) MarshalTo

func (m *Credential) MarshalTo(dAtA []byte) (int, error)

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) Reset

func (m *Credential) Reset()

func (*Credential) Size

func (m *Credential) Size() (n int)

func (*Credential) String

func (m *Credential) String() string

func (*Credential) Unmarshal

func (m *Credential) Unmarshal(dAtA []byte) error

func (*Credential) XXX_DiscardUnknown

func (m *Credential) XXX_DiscardUnknown()

func (*Credential) XXX_Marshal

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

func (*Credential) XXX_Merge

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

func (*Credential) XXX_Size

func (m *Credential) XXX_Size() int

func (*Credential) XXX_Unmarshal

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

type CredentialResponse

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

func (*CredentialResponse) Descriptor

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

func (*CredentialResponse) GetSuccess

func (m *CredentialResponse) GetSuccess() bool

func (*CredentialResponse) Marshal

func (m *CredentialResponse) Marshal() (dAtA []byte, err error)

func (*CredentialResponse) MarshalTo

func (m *CredentialResponse) MarshalTo(dAtA []byte) (int, error)

func (*CredentialResponse) ProtoMessage

func (*CredentialResponse) ProtoMessage()

func (*CredentialResponse) Reset

func (m *CredentialResponse) Reset()

func (*CredentialResponse) Size

func (m *CredentialResponse) Size() (n int)

func (*CredentialResponse) String

func (m *CredentialResponse) String() string

func (*CredentialResponse) Unmarshal

func (m *CredentialResponse) Unmarshal(dAtA []byte) error

func (*CredentialResponse) XXX_DiscardUnknown

func (m *CredentialResponse) XXX_DiscardUnknown()

func (*CredentialResponse) XXX_Marshal

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

func (*CredentialResponse) XXX_Merge

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

func (*CredentialResponse) XXX_Size

func (m *CredentialResponse) XXX_Size() int

func (*CredentialResponse) XXX_Unmarshal

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

type CredentialType

type CredentialType int32
const (
	CredentialType_PASSWORD CredentialType = 0
)

func (CredentialType) EnumDescriptor

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

func (CredentialType) String

func (x CredentialType) String() string

type ShinninjouClient

type ShinninjouClient interface {
	CreateCredential(ctx context.Context, in *Credential, opts ...grpc.CallOption) (*CredentialResponse, error)
	ValidateCredential(ctx context.Context, in *Credential, opts ...grpc.CallOption) (*CredentialResponse, error)
}

ShinninjouClient is the client API for Shinninjou service.

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

func NewShinninjouClient

func NewShinninjouClient(cc *grpc.ClientConn) ShinninjouClient

type ShinninjouServer

type ShinninjouServer interface {
	CreateCredential(context.Context, *Credential) (*CredentialResponse, error)
	ValidateCredential(context.Context, *Credential) (*CredentialResponse, error)
}

ShinninjouServer is the server API for Shinninjou service.

Jump to

Keyboard shortcuts

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