Documentation ¶
Index ¶
- type BookChatDef
- type BookChatElem
- type BookChatProps
- type BookChatState
- type GetBookDef
- type GetBookElem
- type GetBookProps
- type GetBookState
- type MakeCollectionDef
- func (m MakeCollectionDef) GetInitialStateIntf() react.State
- func (m MakeCollectionDef) Props() MakeCollectionProps
- func (g MakeCollectionDef) Render() r.Element
- func (m MakeCollectionDef) RendersElement() react.Element
- func (m MakeCollectionDef) SetState(state MakeCollectionState)
- func (m MakeCollectionDef) State() MakeCollectionState
- type MakeCollectionElem
- type MakeCollectionProps
- type MakeCollectionState
- type Messages
- func (m *Messages) Append(v ...string) *Messages
- func (m *Messages) AsImmutable(v *Messages) *Messages
- func (m *Messages) AsMutable() *Messages
- func (m *Messages) Get(i int) string
- func (s *Messages) IsDeeplyNonMutable(seen map[interface{}]bool) bool
- func (m *Messages) Len() int
- func (m *Messages) Mutable() bool
- func (m *Messages) Range() []string
- func (m *Messages) Set(i int, v string) *Messages
- func (m *Messages) WithImmutable(f func(mi *Messages)) *Messages
- func (m *Messages) WithMutable(f func(mi *Messages)) *Messages
- type QueryBooksDef
- func (q *QueryBooksDef) GetInitialState() QueryBooksState
- func (q QueryBooksDef) GetInitialStateIntf() react.State
- func (q QueryBooksDef) Props() QueryBooksProps
- func (q QueryBooksDef) Render() r.Element
- func (q QueryBooksDef) RendersElement() react.Element
- func (q QueryBooksDef) SetState(state QueryBooksState)
- func (q QueryBooksDef) State() QueryBooksState
- type QueryBooksElem
- type QueryBooksProps
- type QueryBooksState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookChatDef ¶
type BookChatDef struct {
r.ComponentDef
}
BookChatDef defines the BookChat component
func (BookChatDef) GetInitialStateIntf ¶
func (b BookChatDef) GetInitialStateIntf() react.State
GetInitialStateIntf is an auto-generated proxy to GetInitialState
func (BookChatDef) Props ¶
func (b BookChatDef) Props() BookChatProps
Props is an auto-generated proxy to the current props of BookChat
func (BookChatDef) Render ¶
func (g BookChatDef) Render() r.Element
Render renders the BookChat component
func (BookChatDef) RendersElement ¶
func (b BookChatDef) RendersElement() react.Element
func (BookChatDef) SetState ¶
func (b BookChatDef) SetState(state BookChatState)
SetState is an auto-generated proxy proxy to update the state for the BookChat component. SetState does not immediately mutate b.State() but creates a pending state transition.
func (BookChatDef) State ¶
func (b BookChatDef) State() BookChatState
State is an auto-generated proxy to return the current state in use for the render of the BookChat component
type BookChatElem ¶
type BookChatProps ¶
type BookChatProps struct {
Client library.BookServiceClient
}
BookChatProps defines the properties of this component
func (BookChatProps) EqualsIntf ¶
func (b BookChatProps) EqualsIntf(val react.Props) bool
func (BookChatProps) IsProps ¶
func (b BookChatProps) IsProps()
IsProps is an auto-generated definition so that BookChatProps implements the myitcv.io/react.Props interface.
type BookChatState ¶
type BookChatState struct {
// contains filtered or unexported fields
}
BookChatState holds the state for the BookChat component
func (BookChatState) EqualsIntf ¶
func (b BookChatState) EqualsIntf(val react.State) bool
func (BookChatState) IsState ¶
func (b BookChatState) IsState()
IsState is an auto-generated definition so that BookChatState implements the myitcv.io/react.State interface.
type GetBookDef ¶
type GetBookDef struct {
r.ComponentDef
}
GetBookDef defines the getbook component
func (GetBookDef) GetInitialStateIntf ¶
func (g GetBookDef) GetInitialStateIntf() react.State
GetInitialStateIntf is an auto-generated proxy to GetInitialState
func (GetBookDef) Props ¶
func (g GetBookDef) Props() GetBookProps
Props is an auto-generated proxy to the current props of GetBook
func (GetBookDef) Render ¶
func (g GetBookDef) Render() r.Element
Render renders the GetBook component
func (GetBookDef) RendersElement ¶
func (g GetBookDef) RendersElement() react.Element
func (GetBookDef) SetState ¶
func (g GetBookDef) SetState(state GetBookState)
SetState is an auto-generated proxy proxy to update the state for the GetBook component. SetState does not immediately mutate g.State() but creates a pending state transition.
func (GetBookDef) State ¶
func (g GetBookDef) State() GetBookState
State is an auto-generated proxy to return the current state in use for the render of the GetBook component
type GetBookElem ¶
type GetBookProps ¶
type GetBookProps struct {
Client library.BookServiceClient
}
GetBookProps defines the properties of this component
func (GetBookProps) EqualsIntf ¶
func (g GetBookProps) EqualsIntf(val react.Props) bool
func (GetBookProps) IsProps ¶
func (g GetBookProps) IsProps()
IsProps is an auto-generated definition so that GetBookProps implements the myitcv.io/react.Props interface.
type GetBookState ¶
type GetBookState struct {
// contains filtered or unexported fields
}
GetBookState holds the state for the GetBook component
func (GetBookState) EqualsIntf ¶
func (g GetBookState) EqualsIntf(val react.State) bool
func (GetBookState) IsState ¶
func (g GetBookState) IsState()
IsState is an auto-generated definition so that GetBookState implements the myitcv.io/react.State interface.
type MakeCollectionDef ¶
type MakeCollectionDef struct {
r.ComponentDef
}
MakeCollectionDef defines the MakeCollection component
func (MakeCollectionDef) GetInitialStateIntf ¶
func (m MakeCollectionDef) GetInitialStateIntf() react.State
GetInitialStateIntf is an auto-generated proxy to GetInitialState
func (MakeCollectionDef) Props ¶
func (m MakeCollectionDef) Props() MakeCollectionProps
Props is an auto-generated proxy to the current props of MakeCollection
func (MakeCollectionDef) Render ¶
func (g MakeCollectionDef) Render() r.Element
Render renders the MakeCollection component
func (MakeCollectionDef) RendersElement ¶
func (m MakeCollectionDef) RendersElement() react.Element
func (MakeCollectionDef) SetState ¶
func (m MakeCollectionDef) SetState(state MakeCollectionState)
SetState is an auto-generated proxy proxy to update the state for the MakeCollection component. SetState does not immediately mutate m.State() but creates a pending state transition.
func (MakeCollectionDef) State ¶
func (m MakeCollectionDef) State() MakeCollectionState
State is an auto-generated proxy to return the current state in use for the render of the MakeCollection component
type MakeCollectionElem ¶
func MakeCollection ¶
func MakeCollection(p MakeCollectionProps) *MakeCollectionElem
MakeCollection returns a new MakeCollectionElem
type MakeCollectionProps ¶
type MakeCollectionProps struct {
Client library.BookServiceClient
}
MakeCollectionProps defines the properties of this component
func (MakeCollectionProps) EqualsIntf ¶
func (m MakeCollectionProps) EqualsIntf(val react.Props) bool
func (MakeCollectionProps) IsProps ¶
func (m MakeCollectionProps) IsProps()
IsProps is an auto-generated definition so that MakeCollectionProps implements the myitcv.io/react.Props interface.
type MakeCollectionState ¶
type MakeCollectionState struct {
// contains filtered or unexported fields
}
MakeCollectionState holds the state for the MakeCollection component
func (MakeCollectionState) EqualsIntf ¶
func (m MakeCollectionState) EqualsIntf(val react.State) bool
func (MakeCollectionState) IsState ¶
func (m MakeCollectionState) IsState()
IsState is an auto-generated definition so that MakeCollectionState implements the myitcv.io/react.State interface.
type Messages ¶
type Messages struct {
// contains filtered or unexported fields
}
_Imm_Messages is generated to an immutable type *books which we use in the state
Messages is an immutable type and has the following template:
[]string
func NewMessages ¶
func NewMessagesLen ¶
func (*Messages) AsImmutable ¶
func (*Messages) IsDeeplyNonMutable ¶
func (*Messages) WithImmutable ¶
func (*Messages) WithMutable ¶
type QueryBooksDef ¶
type QueryBooksDef struct {
r.ComponentDef
}
QueryBooksDef defines the QueryBooks component
func (*QueryBooksDef) GetInitialState ¶
func (q *QueryBooksDef) GetInitialState() QueryBooksState
GetInitialState ensures QueryBooksState is initialized with a valid books value.
func (QueryBooksDef) GetInitialStateIntf ¶
func (q QueryBooksDef) GetInitialStateIntf() react.State
GetInitialStateIntf is an auto-generated proxy to GetInitialState
func (QueryBooksDef) Props ¶
func (q QueryBooksDef) Props() QueryBooksProps
Props is an auto-generated proxy to the current props of QueryBooks
func (QueryBooksDef) Render ¶
func (q QueryBooksDef) Render() r.Element
Render renders the QueryBooks component.
func (QueryBooksDef) RendersElement ¶
func (q QueryBooksDef) RendersElement() react.Element
func (QueryBooksDef) SetState ¶
func (q QueryBooksDef) SetState(state QueryBooksState)
SetState is an auto-generated proxy proxy to update the state for the QueryBooks component. SetState does not immediately mutate q.State() but creates a pending state transition.
func (QueryBooksDef) State ¶
func (q QueryBooksDef) State() QueryBooksState
State is an auto-generated proxy to return the current state in use for the render of the QueryBooks component
type QueryBooksElem ¶
func QueryBooks ¶
func QueryBooks(p QueryBooksProps) *QueryBooksElem
QueryBooks returns the QueryBooks component.
type QueryBooksProps ¶
type QueryBooksProps struct {
Client library.BookServiceClient
}
QueryBooksProps defines the properties of this component
func (QueryBooksProps) EqualsIntf ¶
func (q QueryBooksProps) EqualsIntf(val react.Props) bool
func (QueryBooksProps) IsProps ¶
func (q QueryBooksProps) IsProps()
IsProps is an auto-generated definition so that QueryBooksProps implements the myitcv.io/react.Props interface.
type QueryBooksState ¶
type QueryBooksState struct {
// contains filtered or unexported fields
}
QueryBooksState holds the state for the QueryBooks component
func (QueryBooksState) EqualsIntf ¶
func (q QueryBooksState) EqualsIntf(val react.State) bool
func (QueryBooksState) IsState ¶
func (q QueryBooksState) IsState()
IsState is an auto-generated definition so that QueryBooksState implements the myitcv.io/react.State interface.