konlpy_v0alpha

package
v0.0.0-...-307e8c6 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package konlpy_v0alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package konlpy_v0alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package konlpy_v0alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package konlpy_v0alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package konlpy_v0alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHannanumHandler

func RegisterHannanumHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterHannanumHandler registers the http handlers for service Hannanum to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterHannanumHandlerClient

func RegisterHannanumHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HannanumClient) error

RegisterHannanumHandlerClient registers the http handlers for service Hannanum to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "HannanumClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "HannanumClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "HannanumClient" to call the correct interceptors.

func RegisterHannanumHandlerFromEndpoint

func RegisterHannanumHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterHannanumHandlerFromEndpoint is same as RegisterHannanumHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterHannanumHandlerServer

func RegisterHannanumHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HannanumServer) error

RegisterHannanumHandlerServer registers the http handlers for service Hannanum to "mux". UnaryRPC :call HannanumServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterHannanumServer

func RegisterHannanumServer(s *grpc.Server, srv HannanumServer)

func RegisterKkmaHandler

func RegisterKkmaHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterKkmaHandler registers the http handlers for service Kkma to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterKkmaHandlerClient

func RegisterKkmaHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KkmaClient) error

RegisterKkmaHandlerClient registers the http handlers for service Kkma to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KkmaClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KkmaClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KkmaClient" to call the correct interceptors.

func RegisterKkmaHandlerFromEndpoint

func RegisterKkmaHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterKkmaHandlerFromEndpoint is same as RegisterKkmaHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterKkmaHandlerServer

func RegisterKkmaHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KkmaServer) error

RegisterKkmaHandlerServer registers the http handlers for service Kkma to "mux". UnaryRPC :call KkmaServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterKkmaServer

func RegisterKkmaServer(s *grpc.Server, srv KkmaServer)

func RegisterKomoranHandler

func RegisterKomoranHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterKomoranHandler registers the http handlers for service Komoran to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterKomoranHandlerClient

func RegisterKomoranHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KomoranClient) error

RegisterKomoranHandlerClient registers the http handlers for service Komoran to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KomoranClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KomoranClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KomoranClient" to call the correct interceptors.

func RegisterKomoranHandlerFromEndpoint

func RegisterKomoranHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterKomoranHandlerFromEndpoint is same as RegisterKomoranHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterKomoranHandlerServer

func RegisterKomoranHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KomoranServer) error

RegisterKomoranHandlerServer registers the http handlers for service Komoran to "mux". UnaryRPC :call KomoranServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterKomoranServer

func RegisterKomoranServer(s *grpc.Server, srv KomoranServer)

func RegisterMecabHandler

func RegisterMecabHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMecabHandler registers the http handlers for service Mecab to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMecabHandlerClient

func RegisterMecabHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MecabClient) error

RegisterMecabHandlerClient registers the http handlers for service Mecab to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MecabClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MecabClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MecabClient" to call the correct interceptors.

func RegisterMecabHandlerFromEndpoint

func RegisterMecabHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMecabHandlerFromEndpoint is same as RegisterMecabHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMecabHandlerServer

func RegisterMecabHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MecabServer) error

RegisterMecabHandlerServer registers the http handlers for service Mecab to "mux". UnaryRPC :call MecabServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterMecabServer

func RegisterMecabServer(s *grpc.Server, srv MecabServer)

func RegisterOktHandler

func RegisterOktHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterOktHandler registers the http handlers for service Okt to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterOktHandlerClient

func RegisterOktHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OktClient) error

RegisterOktHandlerClient registers the http handlers for service Okt to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OktClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OktClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OktClient" to call the correct interceptors.

func RegisterOktHandlerFromEndpoint

func RegisterOktHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterOktHandlerFromEndpoint is same as RegisterOktHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterOktHandlerServer

func RegisterOktHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OktServer) error

RegisterOktHandlerServer registers the http handlers for service Okt to "mux". UnaryRPC :call OktServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterOktServer

func RegisterOktServer(s *grpc.Server, srv OktServer)

Types

type HannanumClient

type HannanumClient interface {
	Pos09(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*TupleArrayResponse, error)
	Pos22(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*TupleArrayResponse, error)
	Nouns(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
	Morphs(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
	Analyze(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
}

HannanumClient is the client API for Hannanum service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHannanumClient

func NewHannanumClient(cc *grpc.ClientConn) HannanumClient

type HannanumServer

HannanumServer is the server API for Hannanum service.

type KkmaClient

type KkmaClient interface {
	Pos(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*TupleArrayResponse, error)
	Nouns(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
	Morphs(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
	Sentences(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
}

KkmaClient is the client API for Kkma service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKkmaClient

func NewKkmaClient(cc *grpc.ClientConn) KkmaClient

type KkmaServer

KkmaServer is the server API for Kkma service.

type KomoranClient

type KomoranClient interface {
	Pos(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*TupleArrayResponse, error)
	Nouns(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
	Morphs(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
}

KomoranClient is the client API for Komoran service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKomoranClient

func NewKomoranClient(cc *grpc.ClientConn) KomoranClient

type KomoranServer

KomoranServer is the server API for Komoran service.

type MecabClient

type MecabClient interface {
	Pos(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*TupleArrayResponse, error)
	Nouns(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
	Morphs(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringArrayResponse, error)
}

MecabClient is the client API for Mecab service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMecabClient

func NewMecabClient(cc *grpc.ClientConn) MecabClient

type MecabServer

MecabServer is the server API for Mecab service.

type OktClient

OktClient is the client API for Okt service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOktClient

func NewOktClient(cc *grpc.ClientConn) OktClient

type OktServer

OktServer is the server API for Okt service.

type Option

type Option struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                bool     `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Option) Descriptor

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

func (*Option) GetKey

func (m *Option) GetKey() string

func (*Option) GetValue

func (m *Option) GetValue() bool

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) Reset

func (m *Option) Reset()

func (*Option) String

func (m *Option) String() string

func (*Option) XXX_DiscardUnknown

func (m *Option) XXX_DiscardUnknown()

func (*Option) XXX_Marshal

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

func (*Option) XXX_Merge

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

func (*Option) XXX_Size

func (m *Option) XXX_Size() int

func (*Option) XXX_Unmarshal

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

type StringArrayResponse

type StringArrayResponse struct {
	Results              []string  `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	Options              []*Option `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*StringArrayResponse) Descriptor

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

func (*StringArrayResponse) GetOptions

func (m *StringArrayResponse) GetOptions() []*Option

func (*StringArrayResponse) GetResults

func (m *StringArrayResponse) GetResults() []string

func (*StringArrayResponse) ProtoMessage

func (*StringArrayResponse) ProtoMessage()

func (*StringArrayResponse) Reset

func (m *StringArrayResponse) Reset()

func (*StringArrayResponse) String

func (m *StringArrayResponse) String() string

func (*StringArrayResponse) XXX_DiscardUnknown

func (m *StringArrayResponse) XXX_DiscardUnknown()

func (*StringArrayResponse) XXX_Marshal

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

func (*StringArrayResponse) XXX_Merge

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

func (*StringArrayResponse) XXX_Size

func (m *StringArrayResponse) XXX_Size() int

func (*StringArrayResponse) XXX_Unmarshal

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

type StringRequest

type StringRequest struct {
	Payload              string    `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Options              []*Option `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*StringRequest) Descriptor

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

func (*StringRequest) GetOptions

func (m *StringRequest) GetOptions() []*Option

func (*StringRequest) GetPayload

func (m *StringRequest) GetPayload() string

func (*StringRequest) ProtoMessage

func (*StringRequest) ProtoMessage()

func (*StringRequest) Reset

func (m *StringRequest) Reset()

func (*StringRequest) String

func (m *StringRequest) String() string

func (*StringRequest) XXX_DiscardUnknown

func (m *StringRequest) XXX_DiscardUnknown()

func (*StringRequest) XXX_Marshal

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

func (*StringRequest) XXX_Merge

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

func (*StringRequest) XXX_Size

func (m *StringRequest) XXX_Size() int

func (*StringRequest) XXX_Unmarshal

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

type TupleArrayResponse

type TupleArrayResponse struct {
	Results              []*TupleArrayResponse_Tuple `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	Options              []*Option                   `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*TupleArrayResponse) Descriptor

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

func (*TupleArrayResponse) GetOptions

func (m *TupleArrayResponse) GetOptions() []*Option

func (*TupleArrayResponse) GetResults

func (m *TupleArrayResponse) GetResults() []*TupleArrayResponse_Tuple

func (*TupleArrayResponse) ProtoMessage

func (*TupleArrayResponse) ProtoMessage()

func (*TupleArrayResponse) Reset

func (m *TupleArrayResponse) Reset()

func (*TupleArrayResponse) String

func (m *TupleArrayResponse) String() string

func (*TupleArrayResponse) XXX_DiscardUnknown

func (m *TupleArrayResponse) XXX_DiscardUnknown()

func (*TupleArrayResponse) XXX_Marshal

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

func (*TupleArrayResponse) XXX_Merge

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

func (*TupleArrayResponse) XXX_Size

func (m *TupleArrayResponse) XXX_Size() int

func (*TupleArrayResponse) XXX_Unmarshal

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

type TupleArrayResponse_Tuple

type TupleArrayResponse_Tuple struct {
	Keyword              string   `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Tag                  string   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TupleArrayResponse_Tuple) Descriptor

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

func (*TupleArrayResponse_Tuple) GetKeyword

func (m *TupleArrayResponse_Tuple) GetKeyword() string

func (*TupleArrayResponse_Tuple) GetTag

func (m *TupleArrayResponse_Tuple) GetTag() string

func (*TupleArrayResponse_Tuple) ProtoMessage

func (*TupleArrayResponse_Tuple) ProtoMessage()

func (*TupleArrayResponse_Tuple) Reset

func (m *TupleArrayResponse_Tuple) Reset()

func (*TupleArrayResponse_Tuple) String

func (m *TupleArrayResponse_Tuple) String() string

func (*TupleArrayResponse_Tuple) XXX_DiscardUnknown

func (m *TupleArrayResponse_Tuple) XXX_DiscardUnknown()

func (*TupleArrayResponse_Tuple) XXX_Marshal

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

func (*TupleArrayResponse_Tuple) XXX_Merge

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

func (*TupleArrayResponse_Tuple) XXX_Size

func (m *TupleArrayResponse_Tuple) XXX_Size() int

func (*TupleArrayResponse_Tuple) XXX_Unmarshal

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

type UnimplementedHannanumServer

type UnimplementedHannanumServer struct {
}

UnimplementedHannanumServer can be embedded to have forward compatible implementations.

func (*UnimplementedHannanumServer) Analyze

func (*UnimplementedHannanumServer) Morphs

func (*UnimplementedHannanumServer) Nouns

func (*UnimplementedHannanumServer) Pos09

func (*UnimplementedHannanumServer) Pos22

type UnimplementedKkmaServer

type UnimplementedKkmaServer struct {
}

UnimplementedKkmaServer can be embedded to have forward compatible implementations.

func (*UnimplementedKkmaServer) Morphs

func (*UnimplementedKkmaServer) Nouns

func (*UnimplementedKkmaServer) Pos

func (*UnimplementedKkmaServer) Sentences

type UnimplementedKomoranServer

type UnimplementedKomoranServer struct {
}

UnimplementedKomoranServer can be embedded to have forward compatible implementations.

func (*UnimplementedKomoranServer) Morphs

func (*UnimplementedKomoranServer) Nouns

func (*UnimplementedKomoranServer) Pos

type UnimplementedMecabServer

type UnimplementedMecabServer struct {
}

UnimplementedMecabServer can be embedded to have forward compatible implementations.

func (*UnimplementedMecabServer) Morphs

func (*UnimplementedMecabServer) Nouns

func (*UnimplementedMecabServer) Pos

type UnimplementedOktServer

type UnimplementedOktServer struct {
}

UnimplementedOktServer can be embedded to have forward compatible implementations.

func (*UnimplementedOktServer) Morphs

func (*UnimplementedOktServer) Normalize

func (*UnimplementedOktServer) Nouns

func (*UnimplementedOktServer) Phrases

func (*UnimplementedOktServer) Pos

Jump to

Keyboard shortcuts

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