contracts

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailType_name = map[int32]string{
	0: "welcome",
	1: "reset_password",
	2: "reset_email",
	3: "invite_code",
	4: "system_maintenance",
	5: "promotional",
}
View Source
var EmailType_value = map[string]int32{
	"welcome":            0,
	"reset_password":     1,
	"reset_email":        2,
	"invite_code":        3,
	"system_maintenance": 4,
	"promotional":        5,
}

Functions

This section is empty.

Types

type EmailContract

type EmailContract struct {
	Sender               string    `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Target               string    `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	Subject              string    `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	Message              string    `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	Type                 EmailType `protobuf:"varint,5,opt,name=type,proto3,enum=EmailType" json:"type,omitempty"`
	Firstname            string    `protobuf:"bytes,6,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname             string    `protobuf:"bytes,7,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Metadata             *Metadata `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Token                *Tokens   `protobuf:"bytes,9,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*EmailContract) Descriptor

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

func (*EmailContract) GetFirstname

func (m *EmailContract) GetFirstname() string

func (*EmailContract) GetLastname

func (m *EmailContract) GetLastname() string

func (*EmailContract) GetMessage

func (m *EmailContract) GetMessage() string

func (*EmailContract) GetMetadata

func (m *EmailContract) GetMetadata() *Metadata

func (*EmailContract) GetSender

func (m *EmailContract) GetSender() string

func (*EmailContract) GetSubject

func (m *EmailContract) GetSubject() string

func (*EmailContract) GetTarget

func (m *EmailContract) GetTarget() string

func (*EmailContract) GetToken

func (m *EmailContract) GetToken() *Tokens

func (*EmailContract) GetType

func (m *EmailContract) GetType() EmailType

func (*EmailContract) ProtoMessage

func (*EmailContract) ProtoMessage()

func (*EmailContract) Reset

func (m *EmailContract) Reset()

func (*EmailContract) String

func (m *EmailContract) String() string

func (*EmailContract) XXX_DiscardUnknown

func (m *EmailContract) XXX_DiscardUnknown()

func (*EmailContract) XXX_Marshal

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

func (*EmailContract) XXX_Merge

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

func (*EmailContract) XXX_Size

func (m *EmailContract) XXX_Size() int

func (*EmailContract) XXX_Unmarshal

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

type EmailType

type EmailType int32
const (
	// welcome email type
	EmailType_welcome EmailType = 0
	// reset password email type
	EmailType_reset_password EmailType = 1
	// reset email account email type
	EmailType_reset_email EmailType = 2
	// invite code email type
	EmailType_invite_code EmailType = 3
	// system maintenance email type
	EmailType_system_maintenance EmailType = 4
	// promotional email type
	EmailType_promotional EmailType = 5
)

func (EmailType) EnumDescriptor

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

func (EmailType) String

func (x EmailType) String() string

type Metadata

type Metadata struct {
	TraceId              uint32   `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	SourceService        string   `protobuf:"bytes,2,opt,name=source_service,json=sourceService,proto3" json:"source_service,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Metadata) Descriptor

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

func (*Metadata) GetSourceService

func (m *Metadata) GetSourceService() string

func (*Metadata) GetTraceId

func (m *Metadata) GetTraceId() uint32

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

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

func (*Metadata) XXX_Merge

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

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

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

type Tokens

type Tokens struct {
	AccountActivationToken string   `protobuf:"bytes,1,opt,name=accountActivationToken,proto3" json:"accountActivationToken,omitempty"`
	PasswordResetToken     string   `protobuf:"bytes,2,opt,name=passwordResetToken,proto3" json:"passwordResetToken,omitempty"`
	InviteCodeToken        string   `protobuf:"bytes,3,opt,name=inviteCodeToken,proto3" json:"inviteCodeToken,omitempty"`
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

func (*Tokens) Descriptor

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

func (*Tokens) GetAccountActivationToken

func (m *Tokens) GetAccountActivationToken() string

func (*Tokens) GetInviteCodeToken

func (m *Tokens) GetInviteCodeToken() string

func (*Tokens) GetPasswordResetToken

func (m *Tokens) GetPasswordResetToken() string

func (*Tokens) ProtoMessage

func (*Tokens) ProtoMessage()

func (*Tokens) Reset

func (m *Tokens) Reset()

func (*Tokens) String

func (m *Tokens) String() string

func (*Tokens) XXX_DiscardUnknown

func (m *Tokens) XXX_DiscardUnknown()

func (*Tokens) XXX_Marshal

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

func (*Tokens) XXX_Merge

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

func (*Tokens) XXX_Size

func (m *Tokens) XXX_Size() int

func (*Tokens) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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