changer

package
v0.0.0-...-870565b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package changer is a generated protocol buffer package.

It is generated from these files:

changer.proto

It has these top-level messages:

ManagersRequest
ManagersReply
PasswdConfig
ChangeRequest
ChangeReply

Index

Constants

This section is empty.

Variables

View Source
var ChangeRequest_Manager_name = map[int32]string{
	0: "LASTPASS",
}
View Source
var ChangeRequest_Manager_value = map[string]int32{
	"LASTPASS": 0,
}

Functions

func RegisterChangerServer

func RegisterChangerServer(s *grpc.Server, srv ChangerServer)

Types

type ChangeReply

type ChangeReply struct {
	JobId     uint64 `protobuf:"varint,1,opt,name=jobId" json:"jobId,omitempty"`
	StartTime uint64 `protobuf:"varint,2,opt,name=startTime" json:"startTime,omitempty"`
}

The request message containing the user's name.

func (*ChangeReply) Descriptor

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

func (*ChangeReply) GetJobId

func (m *ChangeReply) GetJobId() uint64

func (*ChangeReply) GetStartTime

func (m *ChangeReply) GetStartTime() uint64

func (*ChangeReply) ProtoMessage

func (*ChangeReply) ProtoMessage()

func (*ChangeReply) Reset

func (m *ChangeReply) Reset()

func (*ChangeReply) String

func (m *ChangeReply) String() string

type ChangeRequest

type ChangeRequest struct {
	Manager      ChangeRequest_Manager `protobuf:"varint,1,opt,name=manager,enum=changer.ChangeRequest_Manager" json:"manager,omitempty"`
	Email        string                `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Password     string                `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
	PasswdConfig *PasswdConfig         `protobuf:"bytes,4,opt,name=passwdConfig" json:"passwdConfig,omitempty"`
}

The request message containing the user's name.

func (*ChangeRequest) Descriptor

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

func (*ChangeRequest) GetEmail

func (m *ChangeRequest) GetEmail() string

func (*ChangeRequest) GetManager

func (m *ChangeRequest) GetManager() ChangeRequest_Manager

func (*ChangeRequest) GetPasswdConfig

func (m *ChangeRequest) GetPasswdConfig() *PasswdConfig

func (*ChangeRequest) GetPassword

func (m *ChangeRequest) GetPassword() string

func (*ChangeRequest) ProtoMessage

func (*ChangeRequest) ProtoMessage()

func (*ChangeRequest) Reset

func (m *ChangeRequest) Reset()

func (*ChangeRequest) String

func (m *ChangeRequest) String() string

type ChangeRequest_Manager

type ChangeRequest_Manager int32
const (
	ChangeRequest_LASTPASS ChangeRequest_Manager = 0
)

func (ChangeRequest_Manager) EnumDescriptor

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

func (ChangeRequest_Manager) String

func (x ChangeRequest_Manager) String() string

type ChangerClient

type ChangerClient interface {
	// Sends a greeting
	ChangePassword(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*ChangeReply, error)
	GetManagers(ctx context.Context, in *ManagersRequest, opts ...grpc.CallOption) (*ManagersReply, error)
}

func NewChangerClient

func NewChangerClient(cc *grpc.ClientConn) ChangerClient

type ChangerServer

type ChangerServer interface {
	// Sends a greeting
	ChangePassword(context.Context, *ChangeRequest) (*ChangeReply, error)
	GetManagers(context.Context, *ManagersRequest) (*ManagersReply, error)
}

type ManagersReply

type ManagersReply struct {
	Managers []string `protobuf:"bytes,1,rep,name=managers" json:"managers,omitempty"`
}

func (*ManagersReply) Descriptor

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

func (*ManagersReply) GetManagers

func (m *ManagersReply) GetManagers() []string

func (*ManagersReply) ProtoMessage

func (*ManagersReply) ProtoMessage()

func (*ManagersReply) Reset

func (m *ManagersReply) Reset()

func (*ManagersReply) String

func (m *ManagersReply) String() string

type ManagersRequest

type ManagersRequest struct {
}

func (*ManagersRequest) Descriptor

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

func (*ManagersRequest) ProtoMessage

func (*ManagersRequest) ProtoMessage()

func (*ManagersRequest) Reset

func (m *ManagersRequest) Reset()

func (*ManagersRequest) String

func (m *ManagersRequest) String() string

type PasswdConfig

type PasswdConfig struct {
	Length       uint32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
	Numbers      bool   `protobuf:"varint,2,opt,name=numbers" json:"numbers,omitempty"`
	SpecialChars bool   `protobuf:"varint,3,opt,name=specialChars" json:"specialChars,omitempty"`
}

func (*PasswdConfig) Descriptor

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

func (*PasswdConfig) GetLength

func (m *PasswdConfig) GetLength() uint32

func (*PasswdConfig) GetNumbers

func (m *PasswdConfig) GetNumbers() bool

func (*PasswdConfig) GetSpecialChars

func (m *PasswdConfig) GetSpecialChars() bool

func (*PasswdConfig) ProtoMessage

func (*PasswdConfig) ProtoMessage()

func (*PasswdConfig) Reset

func (m *PasswdConfig) Reset()

func (*PasswdConfig) String

func (m *PasswdConfig) String() string

Jump to

Keyboard shortcuts

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