v1

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthMethodService_GetAuthMethodConfig_FullMethodName    = "/api.admin.authmethod.v1.AuthMethodService/GetAuthMethodConfig"
	AuthMethodService_UpdateAuthMethodConfig_FullMethodName = "/api.admin.authmethod.v1.AuthMethodService/UpdateAuthMethodConfig"
	AuthMethodService_GetEmailPlatform_FullMethodName       = "/api.admin.authmethod.v1.AuthMethodService/GetEmailPlatform"
	AuthMethodService_GetSmsPlatform_FullMethodName         = "/api.admin.authmethod.v1.AuthMethodService/GetSmsPlatform"
	AuthMethodService_GetAuthMethodList_FullMethodName      = "/api.admin.authmethod.v1.AuthMethodService/GetAuthMethodList"
	AuthMethodService_TestEmailSend_FullMethodName          = "/api.admin.authmethod.v1.AuthMethodService/TestEmailSend"
	AuthMethodService_TestSmsSend_FullMethodName            = "/api.admin.authmethod.v1.AuthMethodService/TestSmsSend"
)
View Source
const OperationAuthMethodServiceGetAuthMethodConfig = "/api.admin.authmethod.v1.AuthMethodService/GetAuthMethodConfig"
View Source
const OperationAuthMethodServiceGetAuthMethodList = "/api.admin.authmethod.v1.AuthMethodService/GetAuthMethodList"
View Source
const OperationAuthMethodServiceGetEmailPlatform = "/api.admin.authmethod.v1.AuthMethodService/GetEmailPlatform"
View Source
const OperationAuthMethodServiceGetSmsPlatform = "/api.admin.authmethod.v1.AuthMethodService/GetSmsPlatform"
View Source
const OperationAuthMethodServiceTestEmailSend = "/api.admin.authmethod.v1.AuthMethodService/TestEmailSend"
View Source
const OperationAuthMethodServiceTestSmsSend = "/api.admin.authmethod.v1.AuthMethodService/TestSmsSend"
View Source
const OperationAuthMethodServiceUpdateAuthMethodConfig = "/api.admin.authmethod.v1.AuthMethodService/UpdateAuthMethodConfig"

Variables

View Source
var AuthMethodService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.admin.authmethod.v1.AuthMethodService",
	HandlerType: (*AuthMethodServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAuthMethodConfig",
			Handler:    _AuthMethodService_GetAuthMethodConfig_Handler,
		},
		{
			MethodName: "UpdateAuthMethodConfig",
			Handler:    _AuthMethodService_UpdateAuthMethodConfig_Handler,
		},
		{
			MethodName: "GetEmailPlatform",
			Handler:    _AuthMethodService_GetEmailPlatform_Handler,
		},
		{
			MethodName: "GetSmsPlatform",
			Handler:    _AuthMethodService_GetSmsPlatform_Handler,
		},
		{
			MethodName: "GetAuthMethodList",
			Handler:    _AuthMethodService_GetAuthMethodList_Handler,
		},
		{
			MethodName: "TestEmailSend",
			Handler:    _AuthMethodService_TestEmailSend_Handler,
		},
		{
			MethodName: "TestSmsSend",
			Handler:    _AuthMethodService_TestSmsSend_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/authmethod/v1/authmethod.proto",
}

AuthMethodService_ServiceDesc is the grpc.ServiceDesc for AuthMethodService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_admin_authmethod_v1_authmethod_proto protoreflect.FileDescriptor

Functions

func RegisterAuthMethodServiceHTTPServer

func RegisterAuthMethodServiceHTTPServer(s *http.Server, srv AuthMethodServiceHTTPServer)

func RegisterAuthMethodServiceServer

func RegisterAuthMethodServiceServer(s grpc.ServiceRegistrar, srv AuthMethodServiceServer)

Types

type ActionReply

type ActionReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*ActionReply) Descriptor deprecated

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

Deprecated: Use ActionReply.ProtoReflect.Descriptor instead.

func (*ActionReply) GetCode

func (x *ActionReply) GetCode() int32

func (*ActionReply) GetMsg

func (x *ActionReply) GetMsg() string

func (*ActionReply) ProtoMessage

func (*ActionReply) ProtoMessage()

func (*ActionReply) ProtoReflect

func (x *ActionReply) ProtoReflect() protoreflect.Message

func (*ActionReply) Reset

func (x *ActionReply) Reset()

func (*ActionReply) String

func (x *ActionReply) String() string

func (*ActionReply) Validate

func (m *ActionReply) Validate() error

Validate checks the field values on ActionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ActionReply) ValidateAll

func (m *ActionReply) ValidateAll() error

ValidateAll checks the field values on ActionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ActionReplyMultiError, or nil if none found.

type ActionReplyMultiError

type ActionReplyMultiError []error

ActionReplyMultiError is an error wrapping multiple validation errors returned by ActionReply.ValidateAll() if the designated constraints aren't met.

func (ActionReplyMultiError) AllErrors

func (m ActionReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActionReplyMultiError) Error

func (m ActionReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ActionReplyValidationError

type ActionReplyValidationError struct {
	// contains filtered or unexported fields
}

ActionReplyValidationError is the validation error returned by ActionReply.Validate if the designated constraints aren't met.

func (ActionReplyValidationError) Cause

Cause function returns cause value.

func (ActionReplyValidationError) Error

Error satisfies the builtin error interface

func (ActionReplyValidationError) ErrorName

func (e ActionReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ActionReplyValidationError) Field

Field function returns field value.

func (ActionReplyValidationError) Key

Key function returns key value.

func (ActionReplyValidationError) Reason

Reason function returns reason value.

type AuthMethodConfig

type AuthMethodConfig struct {
	Id      int64            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Method  string           `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Config  *structpb.Struct `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Enabled bool             `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthMethodConfig) Descriptor deprecated

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

Deprecated: Use AuthMethodConfig.ProtoReflect.Descriptor instead.

func (*AuthMethodConfig) GetConfig

func (x *AuthMethodConfig) GetConfig() *structpb.Struct

func (*AuthMethodConfig) GetEnabled

func (x *AuthMethodConfig) GetEnabled() bool

func (*AuthMethodConfig) GetId

func (x *AuthMethodConfig) GetId() int64

func (*AuthMethodConfig) GetMethod

func (x *AuthMethodConfig) GetMethod() string

func (*AuthMethodConfig) ProtoMessage

func (*AuthMethodConfig) ProtoMessage()

func (*AuthMethodConfig) ProtoReflect

func (x *AuthMethodConfig) ProtoReflect() protoreflect.Message

func (*AuthMethodConfig) Reset

func (x *AuthMethodConfig) Reset()

func (*AuthMethodConfig) String

func (x *AuthMethodConfig) String() string

func (*AuthMethodConfig) Validate

func (m *AuthMethodConfig) Validate() error

Validate checks the field values on AuthMethodConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuthMethodConfig) ValidateAll

func (m *AuthMethodConfig) ValidateAll() error

ValidateAll checks the field values on AuthMethodConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthMethodConfigMultiError, or nil if none found.

type AuthMethodConfigData

type AuthMethodConfigData struct {
	Config *AuthMethodConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthMethodConfigData) Descriptor deprecated

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

Deprecated: Use AuthMethodConfigData.ProtoReflect.Descriptor instead.

func (*AuthMethodConfigData) GetConfig

func (x *AuthMethodConfigData) GetConfig() *AuthMethodConfig

func (*AuthMethodConfigData) ProtoMessage

func (*AuthMethodConfigData) ProtoMessage()

func (*AuthMethodConfigData) ProtoReflect

func (x *AuthMethodConfigData) ProtoReflect() protoreflect.Message

func (*AuthMethodConfigData) Reset

func (x *AuthMethodConfigData) Reset()

func (*AuthMethodConfigData) String

func (x *AuthMethodConfigData) String() string

func (*AuthMethodConfigData) Validate

func (m *AuthMethodConfigData) Validate() error

Validate checks the field values on AuthMethodConfigData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuthMethodConfigData) ValidateAll

func (m *AuthMethodConfigData) ValidateAll() error

ValidateAll checks the field values on AuthMethodConfigData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthMethodConfigDataMultiError, or nil if none found.

type AuthMethodConfigDataMultiError

type AuthMethodConfigDataMultiError []error

AuthMethodConfigDataMultiError is an error wrapping multiple validation errors returned by AuthMethodConfigData.ValidateAll() if the designated constraints aren't met.

func (AuthMethodConfigDataMultiError) AllErrors

func (m AuthMethodConfigDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthMethodConfigDataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AuthMethodConfigDataValidationError

type AuthMethodConfigDataValidationError struct {
	// contains filtered or unexported fields
}

AuthMethodConfigDataValidationError is the validation error returned by AuthMethodConfigData.Validate if the designated constraints aren't met.

func (AuthMethodConfigDataValidationError) Cause

Cause function returns cause value.

func (AuthMethodConfigDataValidationError) Error

Error satisfies the builtin error interface

func (AuthMethodConfigDataValidationError) ErrorName

ErrorName returns error name.

func (AuthMethodConfigDataValidationError) Field

Field function returns field value.

func (AuthMethodConfigDataValidationError) Key

Key function returns key value.

func (AuthMethodConfigDataValidationError) Reason

Reason function returns reason value.

type AuthMethodConfigMultiError

type AuthMethodConfigMultiError []error

AuthMethodConfigMultiError is an error wrapping multiple validation errors returned by AuthMethodConfig.ValidateAll() if the designated constraints aren't met.

func (AuthMethodConfigMultiError) AllErrors

func (m AuthMethodConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthMethodConfigMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AuthMethodConfigReply

type AuthMethodConfigReply struct {
	Code    int32                 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string                `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *AuthMethodConfigData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthMethodConfigReply) Descriptor deprecated

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

Deprecated: Use AuthMethodConfigReply.ProtoReflect.Descriptor instead.

func (*AuthMethodConfigReply) GetCode

func (x *AuthMethodConfigReply) GetCode() int32

func (*AuthMethodConfigReply) GetData

func (*AuthMethodConfigReply) GetMessage

func (x *AuthMethodConfigReply) GetMessage() string

func (*AuthMethodConfigReply) ProtoMessage

func (*AuthMethodConfigReply) ProtoMessage()

func (*AuthMethodConfigReply) ProtoReflect

func (x *AuthMethodConfigReply) ProtoReflect() protoreflect.Message

func (*AuthMethodConfigReply) Reset

func (x *AuthMethodConfigReply) Reset()

func (*AuthMethodConfigReply) String

func (x *AuthMethodConfigReply) String() string

func (*AuthMethodConfigReply) Validate

func (m *AuthMethodConfigReply) Validate() error

Validate checks the field values on AuthMethodConfigReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuthMethodConfigReply) ValidateAll

func (m *AuthMethodConfigReply) ValidateAll() error

ValidateAll checks the field values on AuthMethodConfigReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthMethodConfigReplyMultiError, or nil if none found.

type AuthMethodConfigReplyMultiError

type AuthMethodConfigReplyMultiError []error

AuthMethodConfigReplyMultiError is an error wrapping multiple validation errors returned by AuthMethodConfigReply.ValidateAll() if the designated constraints aren't met.

func (AuthMethodConfigReplyMultiError) AllErrors

func (m AuthMethodConfigReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthMethodConfigReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AuthMethodConfigReplyValidationError

type AuthMethodConfigReplyValidationError struct {
	// contains filtered or unexported fields
}

AuthMethodConfigReplyValidationError is the validation error returned by AuthMethodConfigReply.Validate if the designated constraints aren't met.

func (AuthMethodConfigReplyValidationError) Cause

Cause function returns cause value.

func (AuthMethodConfigReplyValidationError) Error

Error satisfies the builtin error interface

func (AuthMethodConfigReplyValidationError) ErrorName

ErrorName returns error name.

func (AuthMethodConfigReplyValidationError) Field

Field function returns field value.

func (AuthMethodConfigReplyValidationError) Key

Key function returns key value.

func (AuthMethodConfigReplyValidationError) Reason

Reason function returns reason value.

type AuthMethodConfigValidationError

type AuthMethodConfigValidationError struct {
	// contains filtered or unexported fields
}

AuthMethodConfigValidationError is the validation error returned by AuthMethodConfig.Validate if the designated constraints aren't met.

func (AuthMethodConfigValidationError) Cause

Cause function returns cause value.

func (AuthMethodConfigValidationError) Error

Error satisfies the builtin error interface

func (AuthMethodConfigValidationError) ErrorName

ErrorName returns error name.

func (AuthMethodConfigValidationError) Field

Field function returns field value.

func (AuthMethodConfigValidationError) Key

Key function returns key value.

func (AuthMethodConfigValidationError) Reason

Reason function returns reason value.

type AuthMethodListData

type AuthMethodListData struct {
	List []*AuthMethodConfig `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthMethodListData) Descriptor deprecated

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

Deprecated: Use AuthMethodListData.ProtoReflect.Descriptor instead.

func (*AuthMethodListData) GetList

func (x *AuthMethodListData) GetList() []*AuthMethodConfig

func (*AuthMethodListData) ProtoMessage

func (*AuthMethodListData) ProtoMessage()

func (*AuthMethodListData) ProtoReflect

func (x *AuthMethodListData) ProtoReflect() protoreflect.Message

func (*AuthMethodListData) Reset

func (x *AuthMethodListData) Reset()

func (*AuthMethodListData) String

func (x *AuthMethodListData) String() string

func (*AuthMethodListData) Validate

func (m *AuthMethodListData) Validate() error

Validate checks the field values on AuthMethodListData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuthMethodListData) ValidateAll

func (m *AuthMethodListData) ValidateAll() error

ValidateAll checks the field values on AuthMethodListData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthMethodListDataMultiError, or nil if none found.

type AuthMethodListDataMultiError

type AuthMethodListDataMultiError []error

AuthMethodListDataMultiError is an error wrapping multiple validation errors returned by AuthMethodListData.ValidateAll() if the designated constraints aren't met.

func (AuthMethodListDataMultiError) AllErrors

func (m AuthMethodListDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthMethodListDataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AuthMethodListDataValidationError

type AuthMethodListDataValidationError struct {
	// contains filtered or unexported fields
}

AuthMethodListDataValidationError is the validation error returned by AuthMethodListData.Validate if the designated constraints aren't met.

func (AuthMethodListDataValidationError) Cause

Cause function returns cause value.

func (AuthMethodListDataValidationError) Error

Error satisfies the builtin error interface

func (AuthMethodListDataValidationError) ErrorName

ErrorName returns error name.

func (AuthMethodListDataValidationError) Field

Field function returns field value.

func (AuthMethodListDataValidationError) Key

Key function returns key value.

func (AuthMethodListDataValidationError) Reason

Reason function returns reason value.

type AuthMethodListReply

type AuthMethodListReply struct {
	Code    int32               `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *AuthMethodListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthMethodListReply) Descriptor deprecated

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

Deprecated: Use AuthMethodListReply.ProtoReflect.Descriptor instead.

func (*AuthMethodListReply) GetCode

func (x *AuthMethodListReply) GetCode() int32

func (*AuthMethodListReply) GetData

func (*AuthMethodListReply) GetMessage

func (x *AuthMethodListReply) GetMessage() string

func (*AuthMethodListReply) ProtoMessage

func (*AuthMethodListReply) ProtoMessage()

func (*AuthMethodListReply) ProtoReflect

func (x *AuthMethodListReply) ProtoReflect() protoreflect.Message

func (*AuthMethodListReply) Reset

func (x *AuthMethodListReply) Reset()

func (*AuthMethodListReply) String

func (x *AuthMethodListReply) String() string

func (*AuthMethodListReply) Validate

func (m *AuthMethodListReply) Validate() error

Validate checks the field values on AuthMethodListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuthMethodListReply) ValidateAll

func (m *AuthMethodListReply) ValidateAll() error

ValidateAll checks the field values on AuthMethodListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthMethodListReplyMultiError, or nil if none found.

type AuthMethodListReplyMultiError

type AuthMethodListReplyMultiError []error

AuthMethodListReplyMultiError is an error wrapping multiple validation errors returned by AuthMethodListReply.ValidateAll() if the designated constraints aren't met.

func (AuthMethodListReplyMultiError) AllErrors

func (m AuthMethodListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthMethodListReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AuthMethodListReplyValidationError

type AuthMethodListReplyValidationError struct {
	// contains filtered or unexported fields
}

AuthMethodListReplyValidationError is the validation error returned by AuthMethodListReply.Validate if the designated constraints aren't met.

func (AuthMethodListReplyValidationError) Cause

Cause function returns cause value.

func (AuthMethodListReplyValidationError) Error

Error satisfies the builtin error interface

func (AuthMethodListReplyValidationError) ErrorName

ErrorName returns error name.

func (AuthMethodListReplyValidationError) Field

Field function returns field value.

func (AuthMethodListReplyValidationError) Key

Key function returns key value.

func (AuthMethodListReplyValidationError) Reason

Reason function returns reason value.

type AuthMethodServiceClient

type AuthMethodServiceClient interface {
	// 获取认证方法配置
	GetAuthMethodConfig(ctx context.Context, in *GetAuthMethodConfigRequest, opts ...grpc.CallOption) (*AuthMethodConfigReply, error)
	// 更新认证方法配置
	UpdateAuthMethodConfig(ctx context.Context, in *UpdateAuthMethodConfigRequest, opts ...grpc.CallOption) (*AuthMethodConfigReply, error)
	// 获取邮件支持平台列表
	GetEmailPlatform(ctx context.Context, in *GetEmailPlatformRequest, opts ...grpc.CallOption) (*PlatformListReply, error)
	// 获取短信支持平台列表
	GetSmsPlatform(ctx context.Context, in *GetSmsPlatformRequest, opts ...grpc.CallOption) (*PlatformListReply, error)
	// 获取认证方法列表
	GetAuthMethodList(ctx context.Context, in *GetAuthMethodListRequest, opts ...grpc.CallOption) (*AuthMethodListReply, error)
	// 测试邮件发送
	TestEmailSend(ctx context.Context, in *TestEmailSendRequest, opts ...grpc.CallOption) (*ActionReply, error)
	// 测试短信发送
	TestSmsSend(ctx context.Context, in *TestSmsSendRequest, opts ...grpc.CallOption) (*ActionReply, error)
}

AuthMethodServiceClient is the client API for AuthMethodService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

认证方法服务

type AuthMethodServiceHTTPClient

type AuthMethodServiceHTTPClient interface {
	// GetAuthMethodConfig 获取认证方法配置
	GetAuthMethodConfig(ctx context.Context, req *GetAuthMethodConfigRequest, opts ...http.CallOption) (rsp *AuthMethodConfigReply, err error)
	// GetAuthMethodList 获取认证方法列表
	GetAuthMethodList(ctx context.Context, req *GetAuthMethodListRequest, opts ...http.CallOption) (rsp *AuthMethodListReply, err error)
	// GetEmailPlatform 获取邮件支持平台列表
	GetEmailPlatform(ctx context.Context, req *GetEmailPlatformRequest, opts ...http.CallOption) (rsp *PlatformListReply, err error)
	// GetSmsPlatform 获取短信支持平台列表
	GetSmsPlatform(ctx context.Context, req *GetSmsPlatformRequest, opts ...http.CallOption) (rsp *PlatformListReply, err error)
	// TestEmailSend 测试邮件发送
	TestEmailSend(ctx context.Context, req *TestEmailSendRequest, opts ...http.CallOption) (rsp *ActionReply, err error)
	// TestSmsSend 测试短信发送
	TestSmsSend(ctx context.Context, req *TestSmsSendRequest, opts ...http.CallOption) (rsp *ActionReply, err error)
	// UpdateAuthMethodConfig 更新认证方法配置
	UpdateAuthMethodConfig(ctx context.Context, req *UpdateAuthMethodConfigRequest, opts ...http.CallOption) (rsp *AuthMethodConfigReply, err error)
}

func NewAuthMethodServiceHTTPClient

func NewAuthMethodServiceHTTPClient(client *http.Client) AuthMethodServiceHTTPClient

type AuthMethodServiceHTTPClientImpl

type AuthMethodServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AuthMethodServiceHTTPClientImpl) GetAuthMethodConfig

GetAuthMethodConfig 获取认证方法配置

func (*AuthMethodServiceHTTPClientImpl) GetAuthMethodList

GetAuthMethodList 获取认证方法列表

func (*AuthMethodServiceHTTPClientImpl) GetEmailPlatform

GetEmailPlatform 获取邮件支持平台列表

func (*AuthMethodServiceHTTPClientImpl) GetSmsPlatform

GetSmsPlatform 获取短信支持平台列表

func (*AuthMethodServiceHTTPClientImpl) TestEmailSend

TestEmailSend 测试邮件发送

func (*AuthMethodServiceHTTPClientImpl) TestSmsSend

TestSmsSend 测试短信发送

func (*AuthMethodServiceHTTPClientImpl) UpdateAuthMethodConfig

UpdateAuthMethodConfig 更新认证方法配置

type AuthMethodServiceHTTPServer

type AuthMethodServiceHTTPServer interface {
	// GetAuthMethodConfig 获取认证方法配置
	GetAuthMethodConfig(context.Context, *GetAuthMethodConfigRequest) (*AuthMethodConfigReply, error)
	// GetAuthMethodList 获取认证方法列表
	GetAuthMethodList(context.Context, *GetAuthMethodListRequest) (*AuthMethodListReply, error)
	// GetEmailPlatform 获取邮件支持平台列表
	GetEmailPlatform(context.Context, *GetEmailPlatformRequest) (*PlatformListReply, error)
	// GetSmsPlatform 获取短信支持平台列表
	GetSmsPlatform(context.Context, *GetSmsPlatformRequest) (*PlatformListReply, error)
	// TestEmailSend 测试邮件发送
	TestEmailSend(context.Context, *TestEmailSendRequest) (*ActionReply, error)
	// TestSmsSend 测试短信发送
	TestSmsSend(context.Context, *TestSmsSendRequest) (*ActionReply, error)
	// UpdateAuthMethodConfig 更新认证方法配置
	UpdateAuthMethodConfig(context.Context, *UpdateAuthMethodConfigRequest) (*AuthMethodConfigReply, error)
}

type AuthMethodServiceServer

type AuthMethodServiceServer interface {
	// 获取认证方法配置
	GetAuthMethodConfig(context.Context, *GetAuthMethodConfigRequest) (*AuthMethodConfigReply, error)
	// 更新认证方法配置
	UpdateAuthMethodConfig(context.Context, *UpdateAuthMethodConfigRequest) (*AuthMethodConfigReply, error)
	// 获取邮件支持平台列表
	GetEmailPlatform(context.Context, *GetEmailPlatformRequest) (*PlatformListReply, error)
	// 获取短信支持平台列表
	GetSmsPlatform(context.Context, *GetSmsPlatformRequest) (*PlatformListReply, error)
	// 获取认证方法列表
	GetAuthMethodList(context.Context, *GetAuthMethodListRequest) (*AuthMethodListReply, error)
	// 测试邮件发送
	TestEmailSend(context.Context, *TestEmailSendRequest) (*ActionReply, error)
	// 测试短信发送
	TestSmsSend(context.Context, *TestSmsSendRequest) (*ActionReply, error)
	// contains filtered or unexported methods
}

AuthMethodServiceServer is the server API for AuthMethodService service. All implementations must embed UnimplementedAuthMethodServiceServer for forward compatibility.

认证方法服务

type GetAuthMethodConfigRequest

type GetAuthMethodConfigRequest struct {
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthMethodConfigRequest) Descriptor deprecated

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

Deprecated: Use GetAuthMethodConfigRequest.ProtoReflect.Descriptor instead.

func (*GetAuthMethodConfigRequest) GetMethod

func (x *GetAuthMethodConfigRequest) GetMethod() string

func (*GetAuthMethodConfigRequest) ProtoMessage

func (*GetAuthMethodConfigRequest) ProtoMessage()

func (*GetAuthMethodConfigRequest) ProtoReflect

func (*GetAuthMethodConfigRequest) Reset

func (x *GetAuthMethodConfigRequest) Reset()

func (*GetAuthMethodConfigRequest) String

func (x *GetAuthMethodConfigRequest) String() string

func (*GetAuthMethodConfigRequest) Validate

func (m *GetAuthMethodConfigRequest) Validate() error

Validate checks the field values on GetAuthMethodConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetAuthMethodConfigRequest) ValidateAll

func (m *GetAuthMethodConfigRequest) ValidateAll() error

ValidateAll checks the field values on GetAuthMethodConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAuthMethodConfigRequestMultiError, or nil if none found.

type GetAuthMethodConfigRequestMultiError

type GetAuthMethodConfigRequestMultiError []error

GetAuthMethodConfigRequestMultiError is an error wrapping multiple validation errors returned by GetAuthMethodConfigRequest.ValidateAll() if the designated constraints aren't met.

func (GetAuthMethodConfigRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetAuthMethodConfigRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAuthMethodConfigRequestValidationError

type GetAuthMethodConfigRequestValidationError struct {
	// contains filtered or unexported fields
}

GetAuthMethodConfigRequestValidationError is the validation error returned by GetAuthMethodConfigRequest.Validate if the designated constraints aren't met.

func (GetAuthMethodConfigRequestValidationError) Cause

Cause function returns cause value.

func (GetAuthMethodConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAuthMethodConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAuthMethodConfigRequestValidationError) Field

Field function returns field value.

func (GetAuthMethodConfigRequestValidationError) Key

Key function returns key value.

func (GetAuthMethodConfigRequestValidationError) Reason

Reason function returns reason value.

type GetAuthMethodListRequest

type GetAuthMethodListRequest struct {
	// contains filtered or unexported fields
}

func (*GetAuthMethodListRequest) Descriptor deprecated

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

Deprecated: Use GetAuthMethodListRequest.ProtoReflect.Descriptor instead.

func (*GetAuthMethodListRequest) ProtoMessage

func (*GetAuthMethodListRequest) ProtoMessage()

func (*GetAuthMethodListRequest) ProtoReflect

func (x *GetAuthMethodListRequest) ProtoReflect() protoreflect.Message

func (*GetAuthMethodListRequest) Reset

func (x *GetAuthMethodListRequest) Reset()

func (*GetAuthMethodListRequest) String

func (x *GetAuthMethodListRequest) String() string

func (*GetAuthMethodListRequest) Validate

func (m *GetAuthMethodListRequest) Validate() error

Validate checks the field values on GetAuthMethodListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetAuthMethodListRequest) ValidateAll

func (m *GetAuthMethodListRequest) ValidateAll() error

ValidateAll checks the field values on GetAuthMethodListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAuthMethodListRequestMultiError, or nil if none found.

type GetAuthMethodListRequestMultiError

type GetAuthMethodListRequestMultiError []error

GetAuthMethodListRequestMultiError is an error wrapping multiple validation errors returned by GetAuthMethodListRequest.ValidateAll() if the designated constraints aren't met.

func (GetAuthMethodListRequestMultiError) AllErrors

func (m GetAuthMethodListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAuthMethodListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAuthMethodListRequestValidationError

type GetAuthMethodListRequestValidationError struct {
	// contains filtered or unexported fields
}

GetAuthMethodListRequestValidationError is the validation error returned by GetAuthMethodListRequest.Validate if the designated constraints aren't met.

func (GetAuthMethodListRequestValidationError) Cause

Cause function returns cause value.

func (GetAuthMethodListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAuthMethodListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAuthMethodListRequestValidationError) Field

Field function returns field value.

func (GetAuthMethodListRequestValidationError) Key

Key function returns key value.

func (GetAuthMethodListRequestValidationError) Reason

Reason function returns reason value.

type GetEmailPlatformRequest

type GetEmailPlatformRequest struct {
	// contains filtered or unexported fields
}

func (*GetEmailPlatformRequest) Descriptor deprecated

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

Deprecated: Use GetEmailPlatformRequest.ProtoReflect.Descriptor instead.

func (*GetEmailPlatformRequest) ProtoMessage

func (*GetEmailPlatformRequest) ProtoMessage()

func (*GetEmailPlatformRequest) ProtoReflect

func (x *GetEmailPlatformRequest) ProtoReflect() protoreflect.Message

func (*GetEmailPlatformRequest) Reset

func (x *GetEmailPlatformRequest) Reset()

func (*GetEmailPlatformRequest) String

func (x *GetEmailPlatformRequest) String() string

func (*GetEmailPlatformRequest) Validate

func (m *GetEmailPlatformRequest) Validate() error

Validate checks the field values on GetEmailPlatformRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetEmailPlatformRequest) ValidateAll

func (m *GetEmailPlatformRequest) ValidateAll() error

ValidateAll checks the field values on GetEmailPlatformRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetEmailPlatformRequestMultiError, or nil if none found.

type GetEmailPlatformRequestMultiError

type GetEmailPlatformRequestMultiError []error

GetEmailPlatformRequestMultiError is an error wrapping multiple validation errors returned by GetEmailPlatformRequest.ValidateAll() if the designated constraints aren't met.

func (GetEmailPlatformRequestMultiError) AllErrors

func (m GetEmailPlatformRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEmailPlatformRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetEmailPlatformRequestValidationError

type GetEmailPlatformRequestValidationError struct {
	// contains filtered or unexported fields
}

GetEmailPlatformRequestValidationError is the validation error returned by GetEmailPlatformRequest.Validate if the designated constraints aren't met.

func (GetEmailPlatformRequestValidationError) Cause

Cause function returns cause value.

func (GetEmailPlatformRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEmailPlatformRequestValidationError) ErrorName

ErrorName returns error name.

func (GetEmailPlatformRequestValidationError) Field

Field function returns field value.

func (GetEmailPlatformRequestValidationError) Key

Key function returns key value.

func (GetEmailPlatformRequestValidationError) Reason

Reason function returns reason value.

type GetSmsPlatformRequest

type GetSmsPlatformRequest struct {
	// contains filtered or unexported fields
}

func (*GetSmsPlatformRequest) Descriptor deprecated

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

Deprecated: Use GetSmsPlatformRequest.ProtoReflect.Descriptor instead.

func (*GetSmsPlatformRequest) ProtoMessage

func (*GetSmsPlatformRequest) ProtoMessage()

func (*GetSmsPlatformRequest) ProtoReflect

func (x *GetSmsPlatformRequest) ProtoReflect() protoreflect.Message

func (*GetSmsPlatformRequest) Reset

func (x *GetSmsPlatformRequest) Reset()

func (*GetSmsPlatformRequest) String

func (x *GetSmsPlatformRequest) String() string

func (*GetSmsPlatformRequest) Validate

func (m *GetSmsPlatformRequest) Validate() error

Validate checks the field values on GetSmsPlatformRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSmsPlatformRequest) ValidateAll

func (m *GetSmsPlatformRequest) ValidateAll() error

ValidateAll checks the field values on GetSmsPlatformRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSmsPlatformRequestMultiError, or nil if none found.

type GetSmsPlatformRequestMultiError

type GetSmsPlatformRequestMultiError []error

GetSmsPlatformRequestMultiError is an error wrapping multiple validation errors returned by GetSmsPlatformRequest.ValidateAll() if the designated constraints aren't met.

func (GetSmsPlatformRequestMultiError) AllErrors

func (m GetSmsPlatformRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSmsPlatformRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetSmsPlatformRequestValidationError

type GetSmsPlatformRequestValidationError struct {
	// contains filtered or unexported fields
}

GetSmsPlatformRequestValidationError is the validation error returned by GetSmsPlatformRequest.Validate if the designated constraints aren't met.

func (GetSmsPlatformRequestValidationError) Cause

Cause function returns cause value.

func (GetSmsPlatformRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSmsPlatformRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSmsPlatformRequestValidationError) Field

Field function returns field value.

func (GetSmsPlatformRequestValidationError) Key

Key function returns key value.

func (GetSmsPlatformRequestValidationError) Reason

Reason function returns reason value.

type Platform

type Platform struct {
	Platform                 string            `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	PlatformUrl              string            `protobuf:"bytes,2,opt,name=platform_url,json=platformUrl,proto3" json:"platform_url,omitempty"`
	PlatformFieldDescription map[string]string `` /* 223-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Platform) Descriptor deprecated

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

Deprecated: Use Platform.ProtoReflect.Descriptor instead.

func (*Platform) GetPlatform

func (x *Platform) GetPlatform() string

func (*Platform) GetPlatformFieldDescription

func (x *Platform) GetPlatformFieldDescription() map[string]string

func (*Platform) GetPlatformUrl

func (x *Platform) GetPlatformUrl() string

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) ProtoReflect

func (x *Platform) ProtoReflect() protoreflect.Message

func (*Platform) Reset

func (x *Platform) Reset()

func (*Platform) String

func (x *Platform) String() string

func (*Platform) Validate

func (m *Platform) Validate() error

Validate checks the field values on Platform with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Platform) ValidateAll

func (m *Platform) ValidateAll() error

ValidateAll checks the field values on Platform with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PlatformMultiError, or nil if none found.

type PlatformListData

type PlatformListData struct {
	List []*Platform `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*PlatformListData) Descriptor deprecated

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

Deprecated: Use PlatformListData.ProtoReflect.Descriptor instead.

func (*PlatformListData) GetList

func (x *PlatformListData) GetList() []*Platform

func (*PlatformListData) GetPlatforms

func (x *PlatformListData) GetPlatforms() []*Platform

func (*PlatformListData) ProtoMessage

func (*PlatformListData) ProtoMessage()

func (*PlatformListData) ProtoReflect

func (x *PlatformListData) ProtoReflect() protoreflect.Message

func (*PlatformListData) Reset

func (x *PlatformListData) Reset()

func (*PlatformListData) String

func (x *PlatformListData) String() string

func (*PlatformListData) Validate

func (m *PlatformListData) Validate() error

Validate checks the field values on PlatformListData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PlatformListData) ValidateAll

func (m *PlatformListData) ValidateAll() error

ValidateAll checks the field values on PlatformListData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PlatformListDataMultiError, or nil if none found.

type PlatformListDataMultiError

type PlatformListDataMultiError []error

PlatformListDataMultiError is an error wrapping multiple validation errors returned by PlatformListData.ValidateAll() if the designated constraints aren't met.

func (PlatformListDataMultiError) AllErrors

func (m PlatformListDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PlatformListDataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PlatformListDataValidationError

type PlatformListDataValidationError struct {
	// contains filtered or unexported fields
}

PlatformListDataValidationError is the validation error returned by PlatformListData.Validate if the designated constraints aren't met.

func (PlatformListDataValidationError) Cause

Cause function returns cause value.

func (PlatformListDataValidationError) Error

Error satisfies the builtin error interface

func (PlatformListDataValidationError) ErrorName

ErrorName returns error name.

func (PlatformListDataValidationError) Field

Field function returns field value.

func (PlatformListDataValidationError) Key

Key function returns key value.

func (PlatformListDataValidationError) Reason

Reason function returns reason value.

type PlatformListReply

type PlatformListReply struct {
	Code int32             `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data *PlatformListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PlatformListReply) Descriptor deprecated

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

Deprecated: Use PlatformListReply.ProtoReflect.Descriptor instead.

func (*PlatformListReply) GetCode

func (x *PlatformListReply) GetCode() int32

func (*PlatformListReply) GetData

func (x *PlatformListReply) GetData() *PlatformListData

func (*PlatformListReply) GetMsg

func (x *PlatformListReply) GetMsg() string

func (*PlatformListReply) ProtoMessage

func (*PlatformListReply) ProtoMessage()

func (*PlatformListReply) ProtoReflect

func (x *PlatformListReply) ProtoReflect() protoreflect.Message

func (*PlatformListReply) Reset

func (x *PlatformListReply) Reset()

func (*PlatformListReply) String

func (x *PlatformListReply) String() string

func (*PlatformListReply) Validate

func (m *PlatformListReply) Validate() error

Validate checks the field values on PlatformListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PlatformListReply) ValidateAll

func (m *PlatformListReply) ValidateAll() error

ValidateAll checks the field values on PlatformListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PlatformListReplyMultiError, or nil if none found.

type PlatformListReplyMultiError

type PlatformListReplyMultiError []error

PlatformListReplyMultiError is an error wrapping multiple validation errors returned by PlatformListReply.ValidateAll() if the designated constraints aren't met.

func (PlatformListReplyMultiError) AllErrors

func (m PlatformListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PlatformListReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PlatformListReplyValidationError

type PlatformListReplyValidationError struct {
	// contains filtered or unexported fields
}

PlatformListReplyValidationError is the validation error returned by PlatformListReply.Validate if the designated constraints aren't met.

func (PlatformListReplyValidationError) Cause

Cause function returns cause value.

func (PlatformListReplyValidationError) Error

Error satisfies the builtin error interface

func (PlatformListReplyValidationError) ErrorName

ErrorName returns error name.

func (PlatformListReplyValidationError) Field

Field function returns field value.

func (PlatformListReplyValidationError) Key

Key function returns key value.

func (PlatformListReplyValidationError) Reason

Reason function returns reason value.

type PlatformMultiError

type PlatformMultiError []error

PlatformMultiError is an error wrapping multiple validation errors returned by Platform.ValidateAll() if the designated constraints aren't met.

func (PlatformMultiError) AllErrors

func (m PlatformMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PlatformMultiError) Error

func (m PlatformMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PlatformValidationError

type PlatformValidationError struct {
	// contains filtered or unexported fields
}

PlatformValidationError is the validation error returned by Platform.Validate if the designated constraints aren't met.

func (PlatformValidationError) Cause

func (e PlatformValidationError) Cause() error

Cause function returns cause value.

func (PlatformValidationError) Error

func (e PlatformValidationError) Error() string

Error satisfies the builtin error interface

func (PlatformValidationError) ErrorName

func (e PlatformValidationError) ErrorName() string

ErrorName returns error name.

func (PlatformValidationError) Field

func (e PlatformValidationError) Field() string

Field function returns field value.

func (PlatformValidationError) Key

func (e PlatformValidationError) Key() bool

Key function returns key value.

func (PlatformValidationError) Reason

func (e PlatformValidationError) Reason() string

Reason function returns reason value.

type TestEmailSendRequest

type TestEmailSendRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*TestEmailSendRequest) Descriptor deprecated

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

Deprecated: Use TestEmailSendRequest.ProtoReflect.Descriptor instead.

func (*TestEmailSendRequest) GetEmail

func (x *TestEmailSendRequest) GetEmail() string

func (*TestEmailSendRequest) ProtoMessage

func (*TestEmailSendRequest) ProtoMessage()

func (*TestEmailSendRequest) ProtoReflect

func (x *TestEmailSendRequest) ProtoReflect() protoreflect.Message

func (*TestEmailSendRequest) Reset

func (x *TestEmailSendRequest) Reset()

func (*TestEmailSendRequest) String

func (x *TestEmailSendRequest) String() string

func (*TestEmailSendRequest) Validate

func (m *TestEmailSendRequest) Validate() error

Validate checks the field values on TestEmailSendRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestEmailSendRequest) ValidateAll

func (m *TestEmailSendRequest) ValidateAll() error

ValidateAll checks the field values on TestEmailSendRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestEmailSendRequestMultiError, or nil if none found.

type TestEmailSendRequestMultiError

type TestEmailSendRequestMultiError []error

TestEmailSendRequestMultiError is an error wrapping multiple validation errors returned by TestEmailSendRequest.ValidateAll() if the designated constraints aren't met.

func (TestEmailSendRequestMultiError) AllErrors

func (m TestEmailSendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestEmailSendRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestEmailSendRequestValidationError

type TestEmailSendRequestValidationError struct {
	// contains filtered or unexported fields
}

TestEmailSendRequestValidationError is the validation error returned by TestEmailSendRequest.Validate if the designated constraints aren't met.

func (TestEmailSendRequestValidationError) Cause

Cause function returns cause value.

func (TestEmailSendRequestValidationError) Error

Error satisfies the builtin error interface

func (TestEmailSendRequestValidationError) ErrorName

ErrorName returns error name.

func (TestEmailSendRequestValidationError) Field

Field function returns field value.

func (TestEmailSendRequestValidationError) Key

Key function returns key value.

func (TestEmailSendRequestValidationError) Reason

Reason function returns reason value.

type TestSendData

type TestSendData struct {
	Success       bool
	ResultMessage string
}

func (*TestSendData) GetResultMessage

func (x *TestSendData) GetResultMessage() string

func (*TestSendData) GetSuccess

func (x *TestSendData) GetSuccess() bool

type TestSendReply

type TestSendReply struct {
	Code    int32
	Message string
	Data    *TestSendData
}

func (*TestSendReply) GetCode

func (x *TestSendReply) GetCode() int32

func (*TestSendReply) GetData

func (x *TestSendReply) GetData() *TestSendData

func (*TestSendReply) GetMessage

func (x *TestSendReply) GetMessage() string

type TestSmsSendRequest

type TestSmsSendRequest struct {
	AreaCode  string `protobuf:"bytes,1,opt,name=area_code,json=areaCode,proto3" json:"area_code,omitempty"`
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// contains filtered or unexported fields
}

func (*TestSmsSendRequest) Descriptor deprecated

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

Deprecated: Use TestSmsSendRequest.ProtoReflect.Descriptor instead.

func (*TestSmsSendRequest) GetAreaCode

func (x *TestSmsSendRequest) GetAreaCode() string

func (*TestSmsSendRequest) GetTelephone

func (x *TestSmsSendRequest) GetTelephone() string

func (*TestSmsSendRequest) ProtoMessage

func (*TestSmsSendRequest) ProtoMessage()

func (*TestSmsSendRequest) ProtoReflect

func (x *TestSmsSendRequest) ProtoReflect() protoreflect.Message

func (*TestSmsSendRequest) Reset

func (x *TestSmsSendRequest) Reset()

func (*TestSmsSendRequest) String

func (x *TestSmsSendRequest) String() string

func (*TestSmsSendRequest) Validate

func (m *TestSmsSendRequest) Validate() error

Validate checks the field values on TestSmsSendRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestSmsSendRequest) ValidateAll

func (m *TestSmsSendRequest) ValidateAll() error

ValidateAll checks the field values on TestSmsSendRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestSmsSendRequestMultiError, or nil if none found.

type TestSmsSendRequestMultiError

type TestSmsSendRequestMultiError []error

TestSmsSendRequestMultiError is an error wrapping multiple validation errors returned by TestSmsSendRequest.ValidateAll() if the designated constraints aren't met.

func (TestSmsSendRequestMultiError) AllErrors

func (m TestSmsSendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestSmsSendRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestSmsSendRequestValidationError

type TestSmsSendRequestValidationError struct {
	// contains filtered or unexported fields
}

TestSmsSendRequestValidationError is the validation error returned by TestSmsSendRequest.Validate if the designated constraints aren't met.

func (TestSmsSendRequestValidationError) Cause

Cause function returns cause value.

func (TestSmsSendRequestValidationError) Error

Error satisfies the builtin error interface

func (TestSmsSendRequestValidationError) ErrorName

ErrorName returns error name.

func (TestSmsSendRequestValidationError) Field

Field function returns field value.

func (TestSmsSendRequestValidationError) Key

Key function returns key value.

func (TestSmsSendRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthMethodServiceServer

type UnimplementedAuthMethodServiceServer struct{}

UnimplementedAuthMethodServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAuthMethodServiceServer) GetAuthMethodConfig

func (UnimplementedAuthMethodServiceServer) GetAuthMethodList

func (UnimplementedAuthMethodServiceServer) GetEmailPlatform

func (UnimplementedAuthMethodServiceServer) GetSmsPlatform

func (UnimplementedAuthMethodServiceServer) TestEmailSend

func (UnimplementedAuthMethodServiceServer) TestSmsSend

func (UnimplementedAuthMethodServiceServer) UpdateAuthMethodConfig

type UnsafeAuthMethodServiceServer

type UnsafeAuthMethodServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthMethodServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthMethodServiceServer will result in compilation errors.

type UpdateAuthMethodConfigRequest

type UpdateAuthMethodConfigRequest struct {
	Id      int64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Method  string                `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Config  *structpb.Struct      `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAuthMethodConfigRequest) Descriptor deprecated

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

Deprecated: Use UpdateAuthMethodConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateAuthMethodConfigRequest) GetConfig

func (*UpdateAuthMethodConfigRequest) GetEnabled

func (*UpdateAuthMethodConfigRequest) GetId

func (*UpdateAuthMethodConfigRequest) GetMethod

func (x *UpdateAuthMethodConfigRequest) GetMethod() string

func (*UpdateAuthMethodConfigRequest) ProtoMessage

func (*UpdateAuthMethodConfigRequest) ProtoMessage()

func (*UpdateAuthMethodConfigRequest) ProtoReflect

func (*UpdateAuthMethodConfigRequest) Reset

func (x *UpdateAuthMethodConfigRequest) Reset()

func (*UpdateAuthMethodConfigRequest) String

func (*UpdateAuthMethodConfigRequest) Validate

func (m *UpdateAuthMethodConfigRequest) Validate() error

Validate checks the field values on UpdateAuthMethodConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateAuthMethodConfigRequest) ValidateAll

func (m *UpdateAuthMethodConfigRequest) ValidateAll() error

ValidateAll checks the field values on UpdateAuthMethodConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAuthMethodConfigRequestMultiError, or nil if none found.

type UpdateAuthMethodConfigRequestMultiError

type UpdateAuthMethodConfigRequestMultiError []error

UpdateAuthMethodConfigRequestMultiError is an error wrapping multiple validation errors returned by UpdateAuthMethodConfigRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateAuthMethodConfigRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateAuthMethodConfigRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateAuthMethodConfigRequestValidationError

type UpdateAuthMethodConfigRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateAuthMethodConfigRequestValidationError is the validation error returned by UpdateAuthMethodConfigRequest.Validate if the designated constraints aren't met.

func (UpdateAuthMethodConfigRequestValidationError) Cause

Cause function returns cause value.

func (UpdateAuthMethodConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAuthMethodConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAuthMethodConfigRequestValidationError) Field

Field function returns field value.

func (UpdateAuthMethodConfigRequestValidationError) Key

Key function returns key value.

func (UpdateAuthMethodConfigRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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