userproto

package
v0.0.0-...-73856a8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type POSTCreateUserFuture

type POSTCreateUserFuture struct {
	Future   *typhon.ResponseFuture
	Response *typhon.Response
}

POSTCreateUserFuture is an intermediate future used for parallel requests with POSTCreateUserRequest

func (*POSTCreateUserFuture) DecodeResponse

func (f *POSTCreateUserFuture) DecodeResponse() (*POSTCreateUserResponse, error)

DecodeResponse waits for this future to be done and then decodes the response into a concrete type.

func (*POSTCreateUserFuture) Done

func (f *POSTCreateUserFuture) Done()

Done waits for a response from a typhon future, and is safe to call multiple times in a row.

type POSTCreateUserRequest

type POSTCreateUserRequest struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*POSTCreateUserRequest) Descriptor

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

func (POSTCreateUserRequest) FullPath

func (body POSTCreateUserRequest) FullPath() string

FullPath is the full routable URL to this service.

func (*POSTCreateUserRequest) GetEmail

func (m *POSTCreateUserRequest) GetEmail() string

func (*POSTCreateUserRequest) GetName

func (m *POSTCreateUserRequest) GetName() string

func (*POSTCreateUserRequest) GetPassword

func (m *POSTCreateUserRequest) GetPassword() string

func (*POSTCreateUserRequest) GetUsername

func (m *POSTCreateUserRequest) GetUsername() string

func (POSTCreateUserRequest) Host

func (body POSTCreateUserRequest) Host() string

Host is the short-form service name, e.g. s-brand.

func (POSTCreateUserRequest) Method

func (body POSTCreateUserRequest) Method() string

Method is the HTTP method used for this request. It is inferred from the name of the Request using a prefix match.

func (POSTCreateUserRequest) Path

func (body POSTCreateUserRequest) Path() string

Path is the HTTP path to this endpoint

func (*POSTCreateUserRequest) ProtoMessage

func (*POSTCreateUserRequest) ProtoMessage()

func (POSTCreateUserRequest) Request

Request returns a typhon request for this type.

func (*POSTCreateUserRequest) Reset

func (m *POSTCreateUserRequest) Reset()

func (POSTCreateUserRequest) Response

Response is a shortcut for .Send(ctx).DecodeResponse(), for when you do not need a future. This saves on boilerplate throughout the codebase and you should use this method unless you need parallel requests.

func (POSTCreateUserRequest) Send

Send creates a typhon future and immediately returns it. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (POSTCreateUserRequest) SendVia

SendVia creates a typhon future and immediately returns it, passing the request through svc. To wait for the request to complete and return the response, use DecodeResponse on the returned future.

func (POSTCreateUserRequest) ServiceName

func (body POSTCreateUserRequest) ServiceName() string

ServiceName is the long-form service name, e.g. service.brand.

func (*POSTCreateUserRequest) String

func (m *POSTCreateUserRequest) String() string

func (*POSTCreateUserRequest) XXX_DiscardUnknown

func (m *POSTCreateUserRequest) XXX_DiscardUnknown()

func (*POSTCreateUserRequest) XXX_Marshal

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

func (*POSTCreateUserRequest) XXX_Merge

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

func (*POSTCreateUserRequest) XXX_Size

func (m *POSTCreateUserRequest) XXX_Size() int

func (*POSTCreateUserRequest) XXX_Unmarshal

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

type POSTCreateUserResponse

type POSTCreateUserResponse struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*POSTCreateUserResponse) Descriptor

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

func (*POSTCreateUserResponse) GetUser

func (m *POSTCreateUserResponse) GetUser() *User

func (*POSTCreateUserResponse) ProtoMessage

func (*POSTCreateUserResponse) ProtoMessage()

func (*POSTCreateUserResponse) Reset

func (m *POSTCreateUserResponse) Reset()

func (*POSTCreateUserResponse) String

func (m *POSTCreateUserResponse) String() string

func (*POSTCreateUserResponse) XXX_DiscardUnknown

func (m *POSTCreateUserResponse) XXX_DiscardUnknown()

func (*POSTCreateUserResponse) XXX_Marshal

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

func (*POSTCreateUserResponse) XXX_Merge

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

func (*POSTCreateUserResponse) XXX_Size

func (m *POSTCreateUserResponse) XXX_Size() int

func (*POSTCreateUserResponse) XXX_Unmarshal

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

type User

type User struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Name     string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Role     string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"`
	// general-purpose metadata as an annotation.
	// stored in the database as JSON.
	Metadata             map[string]string `` /* 158-byte string literal not displayed */
	Verified             bool              `protobuf:"varint,51,opt,name=verified,proto3" json:"verified,omitempty"`
	Banned               bool              `protobuf:"varint,52,opt,name=banned,proto3" json:"banned,omitempty"`
	CreatedAt            string            `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            string            `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	VerifiedAt           string            `protobuf:"bytes,102,opt,name=verified_at,json=verifiedAt,proto3" json:"verified_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetBanned

func (m *User) GetBanned() bool

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() string

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetId

func (m *User) GetId() string

func (*User) GetMetadata

func (m *User) GetMetadata() map[string]string

func (*User) GetName

func (m *User) GetName() string

func (*User) GetPassword

func (m *User) GetPassword() string

func (*User) GetRole

func (m *User) GetRole() string

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() string

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) GetVerified

func (m *User) GetVerified() bool

func (*User) GetVerifiedAt

func (m *User) GetVerifiedAt() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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