Documentation ¶
Index ¶
- type POSTCreateUserFuture
- type POSTCreateUserRequest
- func (*POSTCreateUserRequest) Descriptor() ([]byte, []int)
- func (body POSTCreateUserRequest) FullPath() string
- func (m *POSTCreateUserRequest) GetEmail() string
- func (m *POSTCreateUserRequest) GetName() string
- func (m *POSTCreateUserRequest) GetPassword() string
- func (m *POSTCreateUserRequest) GetUsername() string
- func (body POSTCreateUserRequest) Host() string
- func (body POSTCreateUserRequest) Method() string
- func (body POSTCreateUserRequest) Path() string
- func (*POSTCreateUserRequest) ProtoMessage()
- func (body POSTCreateUserRequest) Request(ctx context.Context) typhon.Request
- func (m *POSTCreateUserRequest) Reset()
- func (body POSTCreateUserRequest) Response(ctx context.Context) (*POSTCreateUserResponse, error)
- func (body POSTCreateUserRequest) Send(ctx context.Context) *POSTCreateUserFuture
- func (body POSTCreateUserRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateUserFuture
- func (body POSTCreateUserRequest) ServiceName() string
- func (m *POSTCreateUserRequest) String() string
- func (m *POSTCreateUserRequest) XXX_DiscardUnknown()
- func (m *POSTCreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateUserRequest) XXX_Merge(src proto.Message)
- func (m *POSTCreateUserRequest) XXX_Size() int
- func (m *POSTCreateUserRequest) XXX_Unmarshal(b []byte) error
- type POSTCreateUserResponse
- func (*POSTCreateUserResponse) Descriptor() ([]byte, []int)
- func (m *POSTCreateUserResponse) GetUser() *User
- func (*POSTCreateUserResponse) ProtoMessage()
- func (m *POSTCreateUserResponse) Reset()
- func (m *POSTCreateUserResponse) String() string
- func (m *POSTCreateUserResponse) XXX_DiscardUnknown()
- func (m *POSTCreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *POSTCreateUserResponse) XXX_Merge(src proto.Message)
- func (m *POSTCreateUserResponse) XXX_Size() int
- func (m *POSTCreateUserResponse) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetBanned() bool
- func (m *User) GetCreatedAt() string
- func (m *User) GetEmail() string
- func (m *User) GetId() string
- func (m *User) GetMetadata() map[string]string
- func (m *User) GetName() string
- func (m *User) GetPassword() string
- func (m *User) GetRole() string
- func (m *User) GetUpdatedAt() string
- func (m *User) GetUsername() string
- func (m *User) GetVerified() bool
- func (m *User) GetVerifiedAt() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
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 ¶
func (body POSTCreateUserRequest) Request(ctx context.Context) typhon.Request
Request returns a typhon request for this type.
func (*POSTCreateUserRequest) Reset ¶
func (m *POSTCreateUserRequest) Reset()
func (POSTCreateUserRequest) Response ¶
func (body POSTCreateUserRequest) Response(ctx context.Context) (*POSTCreateUserResponse, error)
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 ¶
func (body POSTCreateUserRequest) Send(ctx context.Context) *POSTCreateUserFuture
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 ¶
func (body POSTCreateUserRequest) SendVia(ctx context.Context, svc typhon.Service) *POSTCreateUserFuture
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) GetCreatedAt ¶
func (*User) GetMetadata ¶
func (*User) GetPassword ¶
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (*User) GetVerified ¶
func (*User) GetVerifiedAt ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()