Documentation
¶
Index ¶
- func RegisterWASMExampleServer(s *grpc.Server, srv WASMExampleServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Project
- func (*Project) Descriptor() ([]byte, []int)
- func (m *Project) GetId() string
- func (m *Project) GetName() string
- func (m *Project) GetUpdatedAt() *timestamp.Timestamp
- func (*Project) ProtoMessage()
- func (m *Project) Reset()
- func (m *Project) String() string
- func (m *Project) XXX_DiscardUnknown()
- func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Project) XXX_Merge(src proto.Message)
- func (m *Project) XXX_Size() int
- func (m *Project) XXX_Unmarshal(b []byte) error
- type ProjectsResponse
- func (*ProjectsResponse) Descriptor() ([]byte, []int)
- func (m *ProjectsResponse) GetProjects() []*Project
- func (*ProjectsResponse) ProtoMessage()
- func (m *ProjectsResponse) Reset()
- func (m *ProjectsResponse) String() string
- func (m *ProjectsResponse) XXX_DiscardUnknown()
- func (m *ProjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProjectsResponse) XXX_Merge(src proto.Message)
- func (m *ProjectsResponse) XXX_Size() int
- func (m *ProjectsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedWASMExampleServer
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetEmail() string
- func (m *User) GetFirstName() string
- func (m *User) GetId() string
- func (m *User) GetLastName() string
- func (m *User) GetUpdatedAt() *timestamp.Timestamp
- 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
- type UsersResponse
- func (*UsersResponse) Descriptor() ([]byte, []int)
- func (m *UsersResponse) GetUsers() []*User
- func (*UsersResponse) ProtoMessage()
- func (m *UsersResponse) Reset()
- func (m *UsersResponse) String() string
- func (m *UsersResponse) XXX_DiscardUnknown()
- func (m *UsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UsersResponse) XXX_Merge(src proto.Message)
- func (m *UsersResponse) XXX_Size() int
- func (m *UsersResponse) XXX_Unmarshal(b []byte) error
- type WASMExampleClient
- type WASMExampleServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWASMExampleServer ¶
func RegisterWASMExampleServer(s *grpc.Server, srv WASMExampleServer)
Types ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type Project ¶
type Project struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Project) Descriptor ¶
func (*Project) GetUpdatedAt ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) XXX_DiscardUnknown ¶
func (m *Project) XXX_DiscardUnknown()
func (*Project) XXX_Marshal ¶
func (*Project) XXX_Unmarshal ¶
type ProjectsResponse ¶
type ProjectsResponse struct { Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProjectsResponse) Descriptor ¶
func (*ProjectsResponse) Descriptor() ([]byte, []int)
func (*ProjectsResponse) GetProjects ¶
func (m *ProjectsResponse) GetProjects() []*Project
func (*ProjectsResponse) ProtoMessage ¶
func (*ProjectsResponse) ProtoMessage()
func (*ProjectsResponse) Reset ¶
func (m *ProjectsResponse) Reset()
func (*ProjectsResponse) String ¶
func (m *ProjectsResponse) String() string
func (*ProjectsResponse) XXX_DiscardUnknown ¶
func (m *ProjectsResponse) XXX_DiscardUnknown()
func (*ProjectsResponse) XXX_Marshal ¶
func (m *ProjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProjectsResponse) XXX_Merge ¶
func (m *ProjectsResponse) XXX_Merge(src proto.Message)
func (*ProjectsResponse) XXX_Size ¶
func (m *ProjectsResponse) XXX_Size() int
func (*ProjectsResponse) XXX_Unmarshal ¶
func (m *ProjectsResponse) XXX_Unmarshal(b []byte) error
type UnimplementedWASMExampleServer ¶
type UnimplementedWASMExampleServer struct { }
UnimplementedWASMExampleServer can be embedded to have forward compatible implementations.
func (*UnimplementedWASMExampleServer) ListProjects ¶
func (*UnimplementedWASMExampleServer) ListProjects(ctx context.Context, req *Empty) (*ProjectsResponse, error)
func (*UnimplementedWASMExampleServer) ListUsers ¶
func (*UnimplementedWASMExampleServer) ListUsers(ctx context.Context, req *Empty) (*UsersResponse, error)
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
func (*User) GetUpdatedAt ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UsersResponse ¶
type UsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UsersResponse) Descriptor ¶
func (*UsersResponse) Descriptor() ([]byte, []int)
func (*UsersResponse) GetUsers ¶
func (m *UsersResponse) GetUsers() []*User
func (*UsersResponse) ProtoMessage ¶
func (*UsersResponse) ProtoMessage()
func (*UsersResponse) Reset ¶
func (m *UsersResponse) Reset()
func (*UsersResponse) String ¶
func (m *UsersResponse) String() string
func (*UsersResponse) XXX_DiscardUnknown ¶
func (m *UsersResponse) XXX_DiscardUnknown()
func (*UsersResponse) XXX_Marshal ¶
func (m *UsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UsersResponse) XXX_Merge ¶
func (m *UsersResponse) XXX_Merge(src proto.Message)
func (*UsersResponse) XXX_Size ¶
func (m *UsersResponse) XXX_Size() int
func (*UsersResponse) XXX_Unmarshal ¶
func (m *UsersResponse) XXX_Unmarshal(b []byte) error
type WASMExampleClient ¶
type WASMExampleClient interface { ListUsers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UsersResponse, error) ListProjects(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ProjectsResponse, error) }
WASMExampleClient is the client API for WASMExample service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWASMExampleClient ¶
func NewWASMExampleClient(cc *grpc.ClientConn) WASMExampleClient
type WASMExampleServer ¶
type WASMExampleServer interface { ListUsers(context.Context, *Empty) (*UsersResponse, error) ListProjects(context.Context, *Empty) (*ProjectsResponse, error) }
WASMExampleServer is the server API for WASMExample service.
Click to show internal directories.
Click to hide internal directories.